WordPress site - error establishing database connection

Milica Sebić 0 Reputation points
2023-06-15T20:39:10.17+00:00

hello, i have a question. about a year ago i hosted a WordPress site on azure, i have azure for students starter plan. for a year it worked like a charm and suddenly i have error establishing a database connection even tho nobody touched anything. credentials are correct. i enabled debugging and got:

mysqli_real_connect(): (HY000/2002): An attempt was made to access a socket in a way forbidden by its access permissions. in C:\home\site\wwwroot\wp-includes\class-wpdb.php on line 2019

but on that line i see just code for connecting to database.

that site is very important to me and now i cannot access or repair it. is there a way for my site to get live again?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.