mysql报错Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 2013-11-27 10:07 40329人阅读 评论(4) 收藏 举报 本文章已收录于:   .embody { padding: 10px 10px 10px; margin: 0 -20px; border-bottom: solid 1px #ededed } .embody_b { margin: 0;…
安装mysql后,启动时候没有启动成功,查看了下日志报错如下:---------------------------------------------1   可以:初始化mysql:mysql_install_db2   目录权限问题chown -R mysql:mysql  /var/lib/mysql[root@localhost local]# less /var/log/mysqld.log1.查看报错信息如下:[ERROR] Fatal error: Can't open and l…
mysql 启动总是报错: 错误日志中显示: [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 表不存在,肯定指定目录datadir错了 vi /etc/my.cnf 确认一下datadir 是不是你指定的目录 然后确认这个目录下是否有mysql 数据库文件 没有的话 或不存在的话 可以执行mysql目录下 scripts 下的mysql_install_db 重…
-- :: [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0 -- :: [Warning] InnoDB: New log files created, LSN= -- :: [Note] InnoDB: Doublewrite buffer not found: creating new -- :: [Note] InnoDB: Doublewrite buffer created -- :: [Note] I…
今天在用一键安装mysql的shell脚本安装mysql-5.1.73软件后发现mysql始终无法启动,多次执行后依旧报错,只能去查看error日志,发现了如下的2个错误: 错误一:Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 错误二:InnoDB: Error: combined size of log files must be < 4 G 很明显,错误一表示有系统表缺失…
一次重启mysql发现无法启动成功,通过检查mysql日志发现问题并解决了问题. mysql启动失败的日志: [root@nn ~]# tail -n 20 /var/log/mysqld.log 130924 10:14:54 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 130924 10:14:54 mysqld_safe mysqld from pid…
来源:http://blog.csdn.net/dapeng0112/article/details/37053407 本来初始化配置是这样的: scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql 出现了 [root@localhost mysql-5.6.14]# service mysql restart ERROR! MySQL server PID…
mysql在首次启动的时候可能会报错:Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist 这时候可以执行脚本 mysql_install_db –user=mysql –ldata=数据存放的路径…
通过yum 的webstatic源安装的mysql55w-server,然后用service mysqld start启动时报 MySQL Daemon failed to start.Starting mysqld: [FAILED] 的错误 tail -f /var/log/mysqld.log 查看mysqld日志发现报错原因是Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 之后通过运行mysql…
这个问题是由于data的目录下没有安装数据库表 解决方法: vi /etc/my.cnf 修改为正确的datadir=“xxxxx”即可 然后service mysqld start service mysql start 正常启动后,会再/var/lib/mysql下面生成mysql.sock文件, 然后还报:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' 可以指定…