安装完mysql后, 要及得配置一下 /etc/mysql/my.cnf
- 配置字符编码为utf8
代码语言:javascript
复制[client]
default-character-set = utf8
[mysqld]
default-storage-engine = INNODB
character-set-server = utf8
collation-server = utf8_general_ci
- 配置外网可以访问
代码语言:javascript
复制bind_address = 0.0.0.0