首页 > 代码库 > Can’t find file mysql/host.frm

Can’t find file mysql/host.frm

安装Mysql后报错:

InnoDB: Apply batch completed

141115 15:04:36 InnoDB: Started; log sequence number 0 44233

141115 15:04:36 [ERROR] /usr/libexec/mysqld: Can‘t find file: ‘./mysql/host.frm‘ (errno: 13)

141115 15:04:36 [ERROR] Fatal error: Can‘t open and lock privilege tables: Can‘t find file: ‘./mysql/host.frm‘ (errno: 13)

?

解决办法:删除/var/lib/mysql/mysql目录,然后执行mysql_install_db –user=mysql,然后重启数据库。前提是要创建mysql用户和组

Can’t find file mysql/host.frm