MySQL cannot connect remotely. The user has been authorized.

my authorization command is

grant select on *.* to  "user_name"@"%" identified by "password";

clipboard.png

clipboard.png

navicat
pingIPpingtelnet3306

clipboard.png

3306IP
clipboard.png
I hope someone can see this problem and take a look at it for me. Thank you.

Mar.03,2021

  • Please check whether the firewall opens the port
  • as mentioned above, Ali CVM, you need to set up a network security group. Open port

this question is asked to colleagues, which is not really a problem. Because I am using Aliyun's server, it is not enough to configure it on the server. I also need to configure a whitelist on Aliyun's website. If you have an Ali cloud server used by your partner, remember to configure the whitelist on the Ali cloud when you see it. If I didn't use Aliyun or my own virtual machine, I could have authorized the above operation successfully.

Menu