I have my web app developed in PHP + mysql .where my application is deployed in Azure which is trying to access mysql at my machine. here the above mentioned error is displayed while connecting through azure to mysql db but it works perfectly when I try the app locally from my system. These are my connection strings at my .env file
DB_CONNECTION=mysql
DB_HOST=10.79.40.233 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=blog
DB_PASSWORD=root123 DB_ADAPTER=PDO_MYSQL
I m using php 7.1.1 version.
It may be remote acces. Try to enable remote acces on your azure web panel. Also pay attention to the connection parmeters. Check if the parameters are correct (Port , Username, Password ...)