The solution to the problem of access denied for user 'root'@'localhost' (using password: YES) when connecting to the other party's MySQL in the same LAN (port solution)

Most of the solutions on the Internet are as follows

  • MySQL server stopped
  • The user's port number or IP caused access to be denied
  • MySQL configuration file error (my.ini and other files)
  • Wrong password for root user

The solution this time is the port number direction 

1. Open the Control Panel and select Security and Maintenance

2. Click Advanced Settings

3. Click Inbound Rules

 4. Add your database port

 

look at the next step

 You can visit after adding~

You can read this article about the open port of Alibaba Cloud server

How does the Alibaba Cloud server open the port number for access

Guess you like

Origin blog.csdn.net/lps12345666/article/details/130166366