wdcp升级mysql后无法启动 MySQL server PID file could not be found

admin2014-05-06linux77
[root@cloud ~]# /etc/init.d/mysqld restart
MySQL server PID file could not be found![FAILED]
Starting MySQL.The server quit without updating PID file (/www/wdlinux/mysql-5.5.27/data/cloud.pid).[FAILED]
解决方法: 输入命令:
vi /www/wdlinux/init.d/mysqld
  编辑mysql配置文件,通过vi命令(按i进入编辑模式、按ESC退出编辑模式、输入:wq保存退出)新增加两行如下配置:
basedir=/www/wdlinux/mysql-5.5.27
datadir=/www/wdlinux/mysql-5.5.27/var
 参考:http://www.jinbo123.com/4654.html    mysql之导入错误----Cannot load from mysql.proc解决办法

解决办法:执行以下命令,升级数据库

        #mysql_upgrade -u root -p

        #Enter password: (输入密码)

解决方法非常简单,运行mysql_upgrade命令即可。此命令会在数据目录下生成一个文本文件mysql_upgrade_info,里面的内容为升级后的数据库版本。 参考: http://blog.sina.com.cn/s/blog_888269b20100zv4t.html