db / 未分类 · 2014年4月1日

如果查看mysql 配置文件

xxx/mysql/bin/mysqld --verbose --help | grep -A 1 'Default options'
140331 14:40:41 [Warning] ‘–skip-locking’ is deprecated and will be removed in a future release. Please use ‘–skip-external-locking’ instead.
140331 14:40:41 [ERROR] Can’t find messagefile ‘/usr/local/mysql/share/english/errmsg.sys’
140331 14:40:41 [ERROR] Fatal error: Please read “Security” section of the manual to find out how to run mysqld as root!
Default options are read from the following files in the given order:
/etc/my.cnf /etc/mysql/my.cnf /usr/local/mysql/etc/my.cnf ~/.my.cnf
140331 14:40:41 [ERROR] Aborting
strace -e stat64 xxx/mysql/bin/mysql --print-defaults
/data/apps/mysql/bin/mysql would have been started with the following arguments:
–port=3306 –socket=/data/tmp/mysql.sock –no-auto-rehash –port=3306 –socket=/data/tmp/mysql.sock –no-auto-rehash