service mysql start
Starting MySQL..The server quit without updating PID file
日志中出现:启动mysql出现错误:Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
解决方法,mysql_install_db需要指定--basedir:
/usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
阅读(3306) | 评论(0) | 转发(0) |