Mysql的“Table 'mysql.servers' doesn't exist”的解决方法
来源:互联网 发布:中小套型住宅优化设计 编辑:程序博客网 时间:2024/05/24 06:11
安装MYSQL后,又一次系统出现问题了,于是我查看mysql的错误日志,竟发现Table 'mysql.servers' doesn't exist问题的错误,
虽然与我的问题无关,但这个问题还是引起我的注意。
分析看是缺少mysql.servers这个表。
后上网寻找解决办法,发现解决这个问题有两个方法:
解决方法一,自己建立这张表。
use mysql;
CREATE TABLE `servers` (
`Server_name` char(64) NOT NULL,
`Host` char(64) NOT NULL,
`Db` char(64) NOT NULL,
`Username` char(64) NOT NULL,
`Password` char(64) NOT NULL,
`Port` int(4) DEFAULT NULL,
`Socket` char(64) DEFAULT NULL,
`Wrapper` char(64) NOT NULL,
`Owner` char(64) NOT NULL,
PRIMARY KEY (`Server_name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
解决方法二,执行修复脚本,让mysql自己修复。在share目录下的mysql_fix_privilege_tables.sql是修复脚本,同样是执行即可。
原因:之所以会出现这个问题,是版本升级造成的不一致。
- Mysql的“Table 'mysql.servers' doesn't exist”的解决方法
- Mysql的“Table 'mysql.servers' doesn't exist”的解决方法
- Mysql的“Table 'mysql.servers' doesn't exist”的解决方法
- Mysql “Table 'mysql.servers' doesn't exist”
- flush privileges提示Table 'mysql.servers' doesn't exist解决办法
- Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 问题的解决方法
- Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 问题的解决方法
- windows7启动MySql报错Table 'mysql.plugin' doesn't exist的解决方法
- MySql报错Table mysql.plugin doesn’t exist的解决方法
- Mysql table '' doesn`t exist
- mysql 提示表不存在的解决方法error: 1146: Table doesn't exist
- MySQL之——提示表不存在的解决方法error: 1146: Table doesn't exist
- mysql 提示表不存在的解决方法error: 1146: Table doesn't exist
- Mysql最后一步安装错误,Error Nr.1146 Table 'mysql.servers' 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 table '' doesn`t exist
- JOJ 1170: Wire Is So Expensive
- SQL*Plus FAQ
- 60个英文阅读网站推荐
- MyEclipse常用快捷键
- flex中Menubar组件dataprovider的后台数据获取方法
- Mysql的“Table 'mysql.servers' doesn't exist”的解决方法
- 对oracle数据库中CLOB字段的相关操作
- c#使用Transactions类完成多个数据库的事务操作
- DEF
- Java编程琐事(6)——Java环境变量的配置汇总
- 关于2010年7月日本语能力测试报名的通知
- error LNK1104: cannot open file "xx.exe"
- 毕业后的五年拉开大家差距的原因
- Struts2 操作Request、Session、Application对象