2
votes

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?

2
What do you mean by, "Azure MySQL service?" Is this a MySQL database in ClearDB or is this a MySQL database in an Azure Virtual Machine? - Shaun Luttin
It's a MySQL database in ClearDB. - johnnyontheweb
Now it seems that my company network is blocking the access. It is strange, because from telnet I get: "5.5.42-logkù«u\KLMfs!☻└§>fi[m4CG2k,Fmysql_native_password" - johnnyontheweb

2 Answers

1
votes

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.

0
votes

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.