启动mysql报错

Starting MySQL/etc/init.d/mysqld: line 159: kill: (21755) - No such process 
用户权限问题! 
编辑 /etc/rc.d/init.d/mysqld  
vi /etc/rc.d/init.d/mysqld 
找到304行: 
$bindir/mysqld_safe --datadir=$datadir --pid-file=$server_pid_file $other_args >/dev/null 2>&1 & 
改为(加上参数--user=root): 
$bindir/mysqld_safe --user=root --datadir=$datadir --pid-file=$server_pid_file $other_args >/dev/null 2>&1 & 
然后再试: 
service mysqld start 
Starting MySQL[ OK ] 

你可能感兴趣的:(mysql,line,159)