详细报错
“ERROR 3009 (HY000): Column count of mysql.user is wrong. Expected 45, found 42. Created with MySQL 50568, now running 50742. Please use mysql_upgrade to fix this error.”
此错误是由于曾经升级过数据库,升级完后没有使用mysql_upgrade升级数据结构造成的。
解决办法:
使用mysql_upgrade命令
mysql_upgrade -u root -p