Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

MySQL and Azure websites. When IP Address changes i get Unable to connect to database Host xxxx is not allowed to connect to this MySQL server

$
0
0

Hello,

I have a Azure websites connecting to a virtual machine with MySQL running. I used:

Mysql> GRANT ALL ON mydb.* TO 'mydbuser'@’<your-ip-address.static.etc.etc>’ IDENTIFIED BY 'password'

in order to allow azure websites to connect to this server. Occasionally I get:

Unable to connect to database [Host '23.98.64.51' is not allowed to connect to this MySQL server]

errors when Azure websites change IP address.

How can I set this up so it allows azure websites to connect but I dont have to constantly update the IP addresses?


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>