【mysql】mysql 配置

安装完mysql后, 要及得配置一下 /etc/mysql/my.cnf

  1. 配置字符编码为utf8
[client]
default-character-set = utf8

[mysqld]
default-storage-engine = INNODB
character-set-server = utf8
collation-server = utf8_general_ci
  1. 配置外网可以访问
bind_address = 0.0.0.0
posted @ 2017-12-03 17:49  赵康  阅读(141)  评论(0编辑  收藏  举报