I have an existing wordpress running on my own server and now I want to migrate my database to Google Cloud SQL
define('DB_NAME', 'myblog'); //under MySQL databases
/** MySQL database username */
define('DB_USER', 'myusername'); //under username created under MySQL user accounts
/** MySQL database password */
define('DB_PASSWORD', 'mypass'); //under password created under MySQL user accounts
/** MySQL hostname */
define('DB_HOST', '35.227.86.242'); //under Connect to this instance > Public IP address
/** 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');
However, I got Error establishing a database connection error.
Helps needed.
Thank you.