Host is not allowed to connect to this MySQL server workaround

Source: Internet
Author: User

Today on Linux installed MySQL, but found in the local login can, but remote login error

ERROR 1130:host ' 192.168.1.3 ' isn't allowed to connect to this MySQL server

First of all, the error is that our MySQL is not allowed to Telnet, so telnet failed, the workaround is as follows:

1. Log on to the mysql:mysql-uroot-p password on the MySQL-equipped machine
2. Select my MySQL library, execute the use MySQL;
3. Update the user table to perform update user set host = '% ' where user = ' root '; This sentence may be error-free.
4. Implementation of the flush privileges;

After 4 steps above, you can solve this problem.
Note: The fourth step is to refresh the MySQL permissions related tables, must not forget, I did not perform the first time fourth step, the results have been unsuccessful, finally found this reason.

Host is not allowed to connect to this MySQL server workaround

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.