Hi @ JamiPremKumar-7324 As per the support team this issue has been resolved after disabling the SSL Connection setting for the server parameter and WordPress website on Azure Virtual Machine is working as expected.
Regards
Geetha
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I tried setting up a WordPress website on Azure Virtual Machine.
Instead of installing MySQL DB. I tried creating an Azure DB for MySQL (Flexible Server) in the same network with the private access and gave the database details in the wp-config.php file in the server.
While loading the webpage with the IP Address in the browser. I am receiving "Error establishing connection with database"
Can you please help me resolve this.
OS: Linux
apache and php used.
Hi @ JamiPremKumar-7324 As per the support team this issue has been resolved after disabling the SSL Connection setting for the server parameter and WordPress website on Azure Virtual Machine is working as expected.
Regards
Geetha
Hi,
I have a similar setup: WordPress is running on a Linux VM and MySQL is setup in an Azure DB for MySQL (Flexible Server).
You do NOT have to disable traffic encryption between your DB and web servers. You want data to be secure in transit.
WordPress can handle SSL connections to a database. To enable this, add the following lines in your "wp-config.php" file.
define( 'DB_SSL', true );
define( 'MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL );