WordPress Site on Azure: Database Connection Issue After Migration

Aathira 0 Reputation points
2024-12-27T21:53:53.61+00:00

I need some help with an issue I'm facing after migrating my WordPress site to Azure. Initially, everything worked fine after the migration, and the site was functioning using my migrated database credentials. However, after a few hours, I started getting the following error: Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/wordpress/wp-includes/class-wpdb.php on line 1982 When I checked the MySQL server, I couldn't find the server or user specified in the wp-config.php file. I tried updating the config file with a new Azure MySQL user and credentials, but it still doesn't work.__

Warning__: mysqli_real_connect(): (HY000/2002): No such file or directory in /var/www/wordpress/wp-includes/class-wpdb.php on line 1982

No such file or directory

Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,013 questions
0 comments No comments
{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.