mysql升级后报Table 'mysql.servers' doesn't exist
解决Table 'mysql.servers' doesn't exist
今天遇到一事,就是我在升级mysql数据库后进入数据建立一远程用户,结果报错了。
mysql> flush privileges;
ERROR (42S02): Table 'mysql.servers' doesn't exist
这是由于升级完数据库后丢失原有的系统表后造成的
解决方案:
mysql> CREATE TABLE `servers` (
-> `Server_name` char() NOT NULL,
-> `Host` char() NOT NULL,`Db` char() NOT NULL,
-> `Username` char() NOT NULL,
-> `Password` char() NOT NULL,
-> `Port` int() DEFAULT NULL,
-> `Socket` char() DEFAULT NULL,
-> `Wrapper` char() NOT NULL,
-> `Owner` char() NOT NULL,
-> PRIMARY KEY (`Server_name`)
-> ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table';
Query OK, rows affected (0.05 sec) mysql> flush privileges;
Query OK, rows affected (0.00 sec) mysql>
mysql升级后报Table 'mysql.servers' doesn't exist的更多相关文章
- MySQL部署时Table 'mysql.plugin' doesn't exist的解决
		
今天部署了免安装版的MySQL,出现了Table 'mysql.plugin' doesn't exist的问题,苦恼了好久,终于在网上找到了解决方案,现整理一下给大家分享: 系统环境:Win10 6 ...
 - Failed to load slave replication state from table mysql.gtid_slave_pos: 1146: Table 'mysql.gtid_slave_pos' doesn't exist
		
http://anothermysqldba.blogspot.com/2013/06/mariadb-1003-alpha-install-on-fedora-17.html MariaDB 10. ...
 - InnoDB: Error: Table "mysql"."innodb_table_stats" not found.
		
问题:打开mysql错误日志时发现大量的如下错误 Error: Table "mysql"."innodb_table_stats" not found. In ...
 - 【MySQL】5.6.x InnoDB Error Table mysql.innodb_table_stats not found
		
[问题描述]: 检查error log的时候发现大量warnings: [Warning] InnoDB Error Table mysql.innodb_index_stats not found ...
 - (转)mysql升级5.5.20时遇到的问题:1548-Cannot load from mysql.proc. The table is probably corrupted
		
LINUX下将mysql从5.1升级至5.5后,发现存储过程不能用了.创建和使用存储过程时就会提示Cannot load from mysql.proc. The table is probably ...
 - Mysql的“Table 'mysql.servers' doesn't exist”的解决方法
		
安装MYSQL后,又一次系统出现问题了,于是我查看mysql的错误日志,竟发现Table 'mysql.servers' doesn't exist问题的错误, 虽然与我的问题无关,但这个问题还是引起 ...
 - Mysql错误--Table 'mysql.servers' doesn't exist.
		
问题: 今天在初始化数据库的时候,在配置文件里加了"--skip grant tables",登陆进去之后,发现无法修改root密码,报这个错误. Table 'mysql.s ...
 - ERROR 1146 (42S02): Table 'mysql.servers' doesn't exist
		
MySQL版本:mysql5.7.21 修改用户权限,刷新权限表,报1146 mysql> flush privileges; ERROR 1146 (42S02): Table 'mysql. ...
 - Mysql 升级重装后连接出错 Table \'performance_schema.session_variables\' doesn\'t exist
		
升级重装后 连接出错 报这个错误 Table 'performance_schema.session_variables' doesn't exist 使用这个命令即可 [root@localh ...
 
随机推荐
- ORA-00845: MEMORY_TARGET not supported
			
Enabling Automatic Memory Management alter system set memory_max_target=50G scope=spfile; alter syst ...
 - css3之gradient
			
radial-gradient The CSS radial-gradient() function creates an <image> which represents a gradi ...
 - phpwind 去除init.phpwind.net统计功能
			
修改的文件如下:global.phplib/staticpage.class.phprequire/template.phpsimple/index.php
 - Virtual Box 工具栏(菜单栏)消失的解决方法
			
异常处理汇总-开发工具 http://www.cnblogs.com/dunitian/p/4522988.html 现在Virtual Box非常牛逼(不排除Oracle又准备像Java SE那样 ...
 - win7自由调整CMD窗口
			
有如下命令,只需要改动相关参数即可以任意改变cmd窗口大小. mode con lines= mode con cols= color cls @cmd
 - vc获取时间戳
			
CTime cTime = CTime::GetCurrentTime(); CString msg; msg.Format("%u",cTime .GetTime()); Afx ...
 - Win8/Win8.1都有哪些版本?我该选择哪个?(二)
			
Windows版本分类比较复杂,下文主要为大家理清Win8/Win8.1的版本种类.如果想了解更多,可以结合<Win7/Win8/Win8.1众多版本,我该选择哪个?>一文来了解. 细数W ...
 - Mysql 插入记录时检查记录是否已经存在,存在则更新,不存在则插入记录SQL
			
我们在开发数据库相关的逻辑过程中, 经常检查表中是否已经存在这样的一条记录, 如果存在则更新或者不做操作, 如果没有存在记录,则需要插入一条新的记录. 这样的逻辑固然可以通过两条sql语句完成. SE ...
 - 《Programming WPF》翻译 第3章 1.什么是控件
			
原文:<Programming WPF>翻译 第3章 1.什么是控件 对于一个应用程序而言,控件是搭建用户界面的积木.它们具备交互式的特征,例如文本框.按钮以及列表框.尽管如此,WPF还有 ...
 - centos 图形界面和命令行界面切换
			
如果在图形界面下,按:Ctrl+Alt+F2进入命令行登录界面 切到root用户下, su root password 1, 关闭图形界面: init 3 关闭图形界面(XServer服务也会关闭) ...