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