mysql 1146错误

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

Table ´mysql.servers´ doesn´t exist and not allowed to connect to MySQL server

flush privileges后,提示:
ERROR 1146 (42S02): Table 'mysql.servers' doesn't exist

解决方法为,建立mysql.servers表:
CREATE TABLE mysql.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';

转载于:https://my.oschina.net/u/657762/blog/118086

你可能感兴趣的:(mysql 1146错误)