MySQL 5.6
调整参数是放在/etc/mysql/my.cnf还是/etc/my.cnf取决于Linux发行版?如果是的话请有人可以指导 CentOS 哪个 my.cnf 是必需的?
谢谢。
最佳答案
my.cnf 的位置是在构建时配置的,因此除非您自己不编译它,否则它取决于您的发行版的包维护者。
对于所有 MySQL 程序,您可以通过使用 --help
选项调用来找出读取了哪个文件。
mysqld(服务器)还需要 --verbose
选项。
$ mysqld --help --verbose
http://dev.mysql.com/doc/refman/5.6/en/option-files.html
To determine whether a program reads option files, invoke it with the --help option. (For mysqld, use --verbose and --help.) If the program reads option files, the help message indicates which files it looks for and which option groups it recognizes.
关于centos 5.2 上 my.cf 的 mysql 5.6 默认位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20835340/