简体   繁体   中英

Cannot connect to Azure MySQL service with MySQL Workbench

I'm using MySQL Workbench on a 64bit/Win 8.1 machine to trying to connect to an Azure MySQL service, but everytime I get the following error:

Lost connection to MySQL server at 'reading authorization packet', system error:0

I followed many tutorial found ever the internet, and I also tried to disable temporarely the firewall: most of them says that the only needed parameters are:

  • hostname (the one given in Azure portal/MyDB/Properties)
  • username (the one given in Azure portal/MyDB/Properties)
  • (optional) password (to store in vault)

I tried also using different connection methods (Standard TCP/IP and Local socket/pipe, as suggested here ) but nothing.

Can help?

I was not able to recreate your issue. Here are the steps that I tried with a MySQL database created thru the Azure portal.

  1. Open MySql Workbench.
  2. Setup new connection with the following settings.
  3. Hostname: HOSTNAME
  4. Port: PORT
  5. Username: USERNAME
  6. Pasword: PASSWORD
  7. Database: DATABASE NAME
  8. Test Connection > Succeeded.

The settings above came from portal.azure.com > MyDatabase > All settings.

One suggestion is to contact ClearDB support. You can login to ClearDB from your database's Azure dashboard by clicking on Manage Database. From there you can go to Support and log a support incident.

I was also struggling with a similar issue, as I was not able to connect my MySQL workbench with Azure VM that's running MySQL.

I've contacted the Azure support to help me out after trying it for 3-4 hrs.

They suggested me to go into network security group of that VM, and add 3306 or whatever port that your MySQL is running on our Azure to the inbound and outbound list and add the exception as All.

It helped me to connect MySQL workbench with Azure VM with MySQL on it.

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