Connect to remote MariaDB using SSL or X509 certificate?
-
I have a separate database server and since I will be building a WooCommerce store, I’m required to setup a secure connection between the two servers (WordPress app & database).
Does anyone know how I can setup WordPress to use my remote db server using X509 certificates?
I have already created the server and client certificate. I’m able to connect to the database remotely using mysql -u USERNAME -h REMOTE_IP -p
However, when I try to connect via WordPress after editing the wp-config.php file, I get failed to connect to database.
I am using:
define('MYSQL_CLIENT_FLAGS', MYSQLI_CLIENT_SSL);
Should I switch to MYSQLI_CLIENT_X509?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.