Host is not allowed to connect to this MySQL server---------------->WINDOWS10

Source: Internet
Author: User
Tags flush

Error, the database cannot be connected remotely.

The first step is to turn off the local firewall

Attention:

Both connected machines need to be shut down.

In the second step, two machines ping each other to see if they can access each other.

Lost to zero, meaning can be connected.

Step three log in to the database

The fourth step, switch, the database for MySQL, authorized access, because is local connection, so, gave all permissions

Fifth step: Modification takes effect

Flush privileges;

The other way is not full permission to give

Allow a specific user to access the machine, for example: 192.168.31.255

1 Grant all privileges the dk.* to ' myuser ' @ ' 192.168.31.255 ' identified by ' mypassword ' with GRANT option; 2 flush privileges;
View Code

Host is not allowed to connect to this MySQL server---------------->WINDOWS10

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.