Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist的解决方法

时间:2023-01-29 08:24:12

启动 mysql 服务的时候报如下错误:

Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

解决方法:

mysql_install_db --user=mysql  初始化数据库即可