Table 'mysql. servers' doesn' t exist and not allowed to conne

Source: Internet
Author: User

Table 'mysql. servers 'doesn' t exist and not allowed to connect to MySQL server solve the problem of installing wamp at home today. After installing wamp, the default mysql root Password is blank. After changing the password flush privileges, the system prompts: ERROR 1146 (42S02): Table 'mysql. servers 'doesn' t exist solution: Create mysql. servers TABLE: 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 NUL L, 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 '; then flush privileges; succeeded. However, when you exit and log on again, the ERROR 1130 (HY000 ): host 'localhost' is not allowed to connect to this MySQL server solution: in mysql. add the skip-grant-tables row to ini and save the settings. Net stop wampmysqldnet start wampmysqld mysql-u root login, modify update mysql. user set password = password ('000000') where user = 'root' and host = 'localhost'; flush privileges; replace mysql. delete the skip-grant-tables line in ini, OK, and solve the problem. The problem is found later. When you change the root password, use the update mysql Command carelessly. user set password = md5 ('20140901') where user = 'root' and host = 'localhost'; the logon fails.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.