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
感觉还是看启动脚本最有用了,下面这些参考真的只能参考一下而已
http://chengxuyuan.naxieshir.com/fenlei/2/p/152.html
http://blog.csdn.net/moxiaomomo/article/details/9792801