简体   繁体   中英

Cant connect to azure mysql database remotely

I've created an azure mysql database, added my client IP to the firewall to allow it. I've added the ports 1433 and 3306 to both inbound and outbound exceptions to my windows firewall. I've opened both ports on my router. I am still unable to connect to my database using programs, such as workbench or toad. It gives me errors such as "An existing connection was forcibly closed by the remote host." Workbench gives the error "Lost connection to mysql server at 'reading initial communication packet', system error: 0. I know my information is all correct, because i know it is connecting. But something is denying my access. I've exhausted all google searches and nothing is solving the problem. If my connection info is correct and all IP's and ports are accounted for, what else could be the problem?

The strange thing is i can connect through visual studio. It's the only thing that will let me connect, however the interface to edit the mysql databse in visual studio is horrific. I cant even get it to work properly. Any ideas would be appreciated so that i can get connected from a decent mysql editor.

Take a look at this ANSWER and make sure your MySQL config is correct and your users are configured properly.

Hope that helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM