zoukankan      html  css  js  c++  java
  • mysql 基础配置经验

    创建库:

    排序:
    utf8_unicode_ci和utf8_general_ci对中、英文来说没有实质的差别。
    utf8_general_ci校对速度快,但准确度稍差。 普遍的意思
    utf8_unicode_ci准确度高,但校对速度稍慢。
    字符集
    utf8 -- UTF-8 Unicode
    utf8mb4 -- UTF-8 Unicode  mb4就是most bytes 4  相比于utf8_unicode_ci  获取更好的兼容性 如 表情(Emoji )

    心得:

    1.程序在本地库运行的好好的,但是 线上的库就发生异常,有可能是线上mysql 数据库版本比较高  可以下载高版本的 mysql.data.dll
    2.错误提示:The used command is not allowed with this MySQL version   ,mysql没有开启客户端导入本地文件的权限  ,
    解决方式 运行:set global local_infile = 1;      查看是否开启成功:show variables like 'local%';

  • 相关阅读:
    Python调用C++的DLL
    Go-map
    Go-切片
    Go-数组
    Go-流程控制
    Go-运算符
    Go-变量和常量
    Go-VS Code配置Go语言开发环境
    Go-跨平台编译
    Go-从零开始搭建Go语言开发环境
  • 原文地址:https://www.cnblogs.com/change4now/p/8806515.html
Copyright © 2011-2022 走看看