I have a Production Database as Azure Database for MYSQL. But its connection failed often. I cant find the issues. Can any one please tell me the reason and how to solve this issues?
Asked
Active
Viewed 344 times
0

Lakshminarayanan S
- 85
- 1
- 14
1 Answers
0
This failed connection occured often, due to blocking hosts. Some document mentioned need to flush hosts on Azure MYSQL Database server.
After i have some changes on Azure Database for MYSQL server, Its working fine. There is no failed connection.
First i tried to connect Azure Database for MYSQL Server from my local linux machine. But it shown Access denied. Then i did reset my password in Azure portal. Then i could logon the Azure MYSQL server through my local linux machine.
Once logged in to Azure Server, I have used below commands to solve this issue,
FLUSH HOSTS;
FLUSH PRIVILEGES;
Finally resolved this error.

Lakshminarayanan S
- 85
- 1
- 14