1130-host ' Win7 ' isn't allowed to connect to this MySQL server

Source: Internet
Author: User

Remotely connect yourself or someone else's MySQL when prompted with a hint: "1130-host ' win7 ' is not allowed to connect to this MySQL server", meaning that the host does not allow connections to the MySQL server, not allowed because the connecting party does not have sufficient permissions. There are two solutions:


Method One:
1) Allow any user to connect:
Update user set host= '% ' where user= ' root ';
Flush privileges;

2) Allow IP 192.168.1.3 connection
Update user set host= ' 192.168.1.3 ' where user= ' root ';
Flush privileges;

3) Allow IP to be any user connection beginning with 192.168.1:
Update user set host= ' 192.168.1% ' where user= ' root ';
Flush privileges;

Method Two:
1) Allow any user to use Root/root connection
Grant all privileges on * * to ' root ' @ '% ' identified by ' root ' with GRANT option;
Flush privileges;

2) allow the user root to connect to the MySQL server from the IP-192.168.1.3 host and use root as the password
Grant all privileges on * * to ' root ' @ ' 192.168.1.3 ' identified by ' root ' with GRANT option;
Flush privileges;

3) Allow user root to connect to the MySQL server's DK database from the IP-192.168.1.3 host and use root as the password
Grant all privileges the dk.* to ' root ' @ ' 192.168.1.3 ' identified by ' root ' with GRANT option;
Flush privileges;

1130-host ' Win7 ' isn't allowed to connect to this MySQL server

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.