php - PDO exception - SQLSTATE[HY000] [2002] An attempt was made to access a socket in a way forbidden by its access permissions in azure -


i have web app developed in php + mysql .where application deployed in azure trying access mysql @ machine. here above mentioned error displayed while connecting through azure mysql db works when try app locally system. these connection strings @ .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 remote acces. try enable remote acces on azure web panel. pay attention connection parmeters. check if parameters correct (port , username, password ...)


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -