Home > Database > Mysql Tutorial > body text

mysql执行flush privileges命令抱错ERROR 1146 (42S02): Tab

WBOY
Release: 2016-06-07 16:34:57
Original
4825 people have browsed it

mysql当执行flush privileges刷新用户权限命令报出ERROR 1146 (42S02): Table 'mysql.servers' doesn't exist这样测错误,字面上的意思就很明显说mysql.servers不存在,直接建一个就可以了,sql语句如下,直接复制粘贴到命令行就可以了: CREATE TABLE `serv

mysql当执行flush privileges刷新用户权限命令报出ERROR 1146 (42S02): Table 'mysql.servers' doesn't exist这样测错误,字面上的意思就很明显说mysql.servers不存在,直接建一个就可以了,sql语句如下,直接复制粘贴到命令行就可以了:

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';
Copy after login

执行完后你再试下flush privileges命令吧

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template