启动mysql的方法:
/etc/rc.d/init.d/mysqld start
1, 查找MySQL 使用的my.cnf文件的位置
$ mysqld --help --verbose 2> /dev/null | grep -A1 'Default options'
结果一般是:
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