service mysql start
Starting MySQL..The server quit without updating PID file (/var/lib/mysql/cvte.pid). [失败]
1:
查看errlog和配置文件的方法:
> mysqld --verbose --help | grep cnf
查看到的报错的提示是:[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2:
然后用这个命令:
mysql_install_db --user=mysql --basedir=/usr/ --ldata=/var/lib/mysql/
这样mysql就不会报启动错误了。