mysql错误: STOPPING server from pid file /tmp/mysqld.pid

执行/usr/bin/mysqld_safe &后
出现:Starting mysqld daemon with databases from /var/lib/mysql
STOPPING server from pid file /tmp/mysqld.pid
061026 20:32:33  mysqld ended

1.data文件夹的mysql权限没有给出!
执行命令:
chown -R mysql /usr/local/mysql/data 

{
安装时别忘记指出安装目录和data目录
--prefix=/usr/local/mysql     --localstatedir=/usr/local/mysql/data
localstatedir是存放数据的场所
}
2.my.cnf的配置文件出现错误。(配置出错会导致如上错误)
3. 用root启动Mysql 
/usr/local/mysql/bin/mysqld_safe --user=root &

你可能感兴趣的:(mysql,server,File)