ERROR 1130: Host & #39; & #39; is not allowed to connect to thisMySQL server, 1130 thismysql

Source: Internet
Author: User

ERROR 1130: Host ''is not allowed to connect to thisMySQL server, 1130 thismysql
One user asked for help today, saying that PHPmyadmin can connect to the database normally. An error is reported when sqlyog is used:

ERROR 1130: Host '2017. 27.214.1 'is not allowed to connect to thisMySQL server


Root case: by default, all MySQL accounts are not allowed to log on remotely.
Solution:
1. Modify the user table
Mysql-u root-p
Mysql> use mysql;
Mysql> update user set host = '2017. 27.241.1 'where user = 'root ';
Mysql> flush privileges;
2. Specify authorization
Mysql-u root-p
Mysql> use mysql;
Mysql> grant all privileges on *. * TO 'root' @ '172. 27.241.1 'identified BY 'mypassword' with grant option;

Mysql> flush privileges;

Note:

1. Precise authorization, that is, the account, the host, and the required permissions must be specified. It is best not to grant wildcard authorization;

2. Remember to flush privileges after executing each command;

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.