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用户和组

时间: 2024-10-09 17:47:28

Can’t find file mysql/host.frm的相关文章

启动mysql问题Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

启动mysql出现问题 /etc/init.d/mysqld start MySQL server PID file could not be found![FAILED] Starting MySQL......................................The server quit without updating PID file (/data/mysql/mysql_3306/data/mysql.pid).[FAILED] 查看错误日志 150619 15:57:

MySQL Study之--Mysql启动失败“mysql.host”

MySQL Study之--Mysql启动失败"mysql.host" 系统环境: 操作系统:RedHat EL55 DB Soft:  Mysql 5.6.4-m7 通过源码包安装mysql后,在启动mysqld时出现错误: [[email protected] mysql]# bin/mysqld_safe &[1] 15846[[email protected] mysql]# 150610 17:04:36 mysqld_safe Logging to '/usr/lo

linux mysql启动报错Can't open and lock privilege tables: Table 'mysql.host' doesn't exist

vi /etc/my.cnf  查看日志文件路径: log-error=/var/log/mysqld.log 查看报错日志: 之前的服务器被别人拿了,所以自己买了台美国vps,根据笔记安装完启动mysql,又启动不了. 查看了错误日志 引用 090321 18:55:03 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data /usr/local/mysql/libexec/mysqld: Ta

MySQL Study之--Mysql无法启动“mysql.host”

MySQL Study之--Mysql无法启动"mysql.host" 系统环境: 操作系统:RedHat EL55 DB Soft:  Mysql 5.6.4-m7 通过源代码包安装mysql后,在启动mysqld时出现错误: [[email protected] mysql]# bin/mysqld_safe & [1] 15846 [[email protected] mysql]# 150610 17:04:36 mysqld_safe Logging to '/usr

mysql启动报错:Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist

mysql在首次启动的时候可能会报错:Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist 这时候可以执行脚本 mysql_install_db –user=mysql –ldata=数据存放的路径

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

[[email protected] scripts]# ./mysql_install_db --user=mysql --basedir=/app/servers/mysql-5.5.20 --datadir=/app/servers/mysql-5.5.20/data/ 加上--datadir=/app/servers/mysql-5.5.20/data/ 问题解决!!! [ERROR] Fatal error: Can't open and lock privilege tables:

mysql Host ‘XXXXXX’ is blocked because of many connection errors

mysql Host ‘XXXXXX’ is blocked because of many connection errors ERROR 1129 (00000): Host ‘XXXXXX’ is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts’查了下资料 这说明mysqld已经得到了大量(max_connect_errors)的主机’hostname’的在中途被中断了的连接请求

黄聪:MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法(转)

转自:http://www.cnblogs.com/susuyu/archive/2013/05/28/3104249.html 环境:linux,mysql5.5.21 错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 原因: 同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞: 解

MySql Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 解决方法

环境:linux,mysql5.5.21 错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' 原因: 同一个ip在短时间内产生太多(超过mysql数据库max_connection_errors的最大值)中断的数据库连接而导致的阻塞: 解决方法: 1.提高允许的max_connection_errors数量(治标不治本): ① 进入Mysql数据库查看max_con