怎样修改MySQL配置
新建/etc/mysql/myopt.cnf
文件,并将改动部分写入该文件,之后在/etc/mysql/my.cnf
中追加一句把这个文件include进来:
1 | !include /etc/mysql/myopt.cnf |
例如仅仅修改一下绑定地址和端口
1 | # /etc/mysql/myopt.cnf |
新建/etc/mysql/myopt.cnf
文件,并将改动部分写入该文件,之后在/etc/mysql/my.cnf
中追加一句把这个文件include进来:
1 | !include /etc/mysql/myopt.cnf |
例如仅仅修改一下绑定地址和端口
1 | # /etc/mysql/myopt.cnf |