Friday, March 27, 2020

[google-cloud-sql-discuss] Re: Error establishing a database connection

Hi Jun,

There was an incident that affected Cloud SQL instances between 2020-03-26 18:17 and ended at 2020-03-27 06:57 UTC-7.
Since the issue is now resolved, please try the migration again. If you still experience errors, please provided the full console output for the error, while obfuscating sensitive information.

On Friday, March 27, 2020 at 9:21:20 AM UTC-4, Jun Leong Wong wrote:
Hi,

I have successfully imported my sql into Google Cloud SQL (MySQL).

I migrated the database to Google Cloud SQL but the whole Wordpress files still remain on my own server.

I have edited the wp-config.php as follow:


/** MySQL database username */
define('DB_USER', 'myuser');  // this is the username under master instance > username

/** MySQL database password */
define('DB_PASSWORD', 'mypass');  // this is the password under master instance > username

/** MySQL hostname */
define('DB_HOST', '35.227.86.242'); // under Connect to this instance > Public IP address > 35.227.86.242

/** 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', 'utf8_general_ci');



But it doesn't work.

I got Error establishing a database connection message.

Helps needed.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/f6848a5a-73c8-429c-aa3f-e5d4171993b2%40googlegroups.com.

No comments:

Post a Comment