标签:it
MySQL启动失败 找不到原因 后来查询
/var/lib/mysql目录下的localhost.localdomain.err文件
出现错误是[[email protected] local]# service mysql start
160704 15:57:28 [ERROR] /usr/sbin/mysqld: Can‘t find file: ‘./mysql/host.frm‘ (errno: 13)
160704 15:57:28 [ERROR] Fatal error: Can‘t open and lock privilege tables: Can‘t find file: ‘./mysql/host.frm‘ (errno: 13)
160704 15:57:28 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.localdomain.pid ended
后经在/etc/my.cnf文件中datadir目录权限是否正确
于是修改了权限,就可以成功启动[[email protected] local]# service mysql start
Starting MySQL.. [确定]
标签:it
原文:http://zhangyanfeng.blog.51cto.com/3884312/1795661