[NSFW] How wordpress connect Cloud SQL’s MySQL
-
This is a wordpress that I created in compute engine of Google Cloud Platform: https://34.124.173.171/
I connect the wordpress with the Cloud SQL’s MySQL instance via SSL, but it keep show this error…
Here are the content of my wp-config.php where I download the 3 .pem files from server certificate of MySQL and I store them in /svr/www/wordpress/wp-content/mysql-ssl directory
define( ‘DB_NAME’, ‘wordpress’ );\
/** Database username */
define( ‘DB_USER’, ‘root’ );
/** Database password */
define( ‘DB_PASSWORD’, ‘redacted by moderator’ );/** Database hostname */
define( ‘DB_HOST’, ‘34.142.133.130’ );/** Database charset to use in creating database tables. */
define( ‘DB_CHARSET’, ‘utf8’ );/** The database collate type. Don’t change this if in doubt. */
define( ‘DB_COLLATE’, ” );define( ‘MYSQL_CLIENT_FLAGS’, MYSQLI_CLIENT_SSL );
define(‘MYSQL_SSL_KEY’, ABSPATH . ‘wp-content/mysql-ssl/client-key.pem’);
define(‘MYSQL_SSL_CERT’, ABSPATH . ‘wp-content/mysql-ssl/client-cert.pem’);
define(‘MYSQL_SSL_CA’, ABSPATH . ‘wp-content/mysql-ssl/server-ca.pem’);
- The topic ‘[NSFW] How wordpress connect Cloud SQL’s MySQL’ is closed to new replies.