Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist
2012-11-26 17:45
741 查看
在Navicat for MySQL中不小心把mysql删了,后来启动mysql服务时报错:Windows 无法启动mysql服务(位于本地计算机上)。 错误1067:进程意外终止;
然后查看日志后(选择事件查看器然后选择windows日志,最后选择应用程序)发现有两处错误1、Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist
2、Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
最后解决办法很简单,由于删了mysql只要将安装包中data文件下的mysql解压放到你的数据库文件(data)中,然后就可以正常启动mysql服务了。
然后查看日志后(选择事件查看器然后选择windows日志,最后选择应用程序)发现有两处错误1、Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist
2、Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
最后解决办法很简单,由于删了mysql只要将安装包中data文件下的mysql解压放到你的数据库文件(data)中,然后就可以正常启动mysql服务了。
相关文章推荐
- Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist 的解决方法
- Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist的解决方法
- mysql启动报错:Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist
- [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- MySQL启动失败[ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- 安装mysql 出现:Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist解决办法
- windows下Mysql解决Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- mysql报错Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- MySQL error: Can’t open and lock privilege tables: table doesn’t exist
- mysql报错Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist 的解决方法
- mysql error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
- windows下 Mysql 错误1067 Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- windows下 Mysql 错误1067 Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- Can't open and lock privilege tables: Table 'mysql.user' doesn't exist
- Mysql linux 安装时遇到 Can't open and lock privilege tables: Table 'mysql.user' doesn't exist 错误解决方案