/etc/init.d/mysqld:line 260:my_print_defaults:command not found

mysql manager or server PID file could not be found!


解决办法:

# vi /etc/my.cnf    (指明basedir和datadir路径即可)

basedir=/usr/local/mysql
datadir=/usr/local/mysql/data

:wq