Home > Database > Mysql Tutorial > mysql升级后报Table 'mysql.servers' doesn't exist解决_MySQL

mysql升级后报Table 'mysql.servers' doesn't exist解决_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:28:23
Original
1618 people have browsed it

bitsCN.com

mysql升级后报Table 'mysql.servers' doesn't exist解决

 

解决Table 'mysql.servers' doesn't exist

 

今天遇到一事,就是我在升级mysql数据库后进入数据建立一远程用户,结果报错了。

 

mysql> flush privileges;ERROR 1146 (42S02): Table 'mysql.servers' doesn't exist
Copy after login

这是由于升级完数据库后丢失原有的系统表后造成的

解决方案:

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 COMMENT='MySQL Foreign Servers table'; Query OK, 0 rows affected (0.05 sec)mysql> flush privileges;Query OK, 0 rows affected (0.00 sec)mysql> 
Copy after login

 


bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template