【mysql】mysql 配置

2023-10-17 09:55:53 浏览数 (3)

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

  1. 配置字符编码为utf8
代码语言:javascript复制
[client]
default-character-set = utf8

[mysqld]
default-storage-engine = INNODB
character-set-server = utf8
collation-server = utf8_general_ci
  1. 配置外网可以访问
代码语言:javascript复制
bind_address = 0.0.0.0

0 人点赞