Support » Fixing WordPress » My website returns Database Error with Google Cloud

  • Please my site is returning back “Error establishing a database connection” and when i try to login it shows this message “This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost:3306. This could mean your host’s database server is down.”

    Please i am new to Google Cloud Console in hosting my blog site.. But i have done everything possible, still the site is showing Database Error. Any help will be appreciated.

    Thanks

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Nelson,

    The “Error establishing a database connection” error message always comes up when WordPress can’t connect to your database, most times are a result of invalid credentials.

    Double-check that your database credentials (username, password, table prefix) in your wp-config file are correct.

    You’ll have to access your wp-config file via FTP (FileZilla, etc.). This guide has worked for me in the past.

    Thread Starter Nelson J. Opoku

    (@nelsongenius)

    @sukafia Yes boss i have login to my through Filezilla and remove the wp-config try it again and done that several times but still the issue is still there.. Please help out

    Ensure that mysql server is up and running.

    Also sometimes the port 3306 might be unavailable for some reasons. Check mysql configuration file to see port used.

    I don’t have experience in Google Cloud though.

    Thread Starter Nelson J. Opoku

    (@nelsongenius)

    @kaushalsheth i don’t know how to get access to the mysql server on GCP …please anyone who can help out

    Hi @nelsongenius,

    I’d advice you take some time to read Google’s Compute engine documentation.

    If you installed WordPress using the Bitnami WordPress stack, you may also want to read Bitnami’s documentation

    Meanwhile, you can try restarting your server and see if it helps. The last command I used for this on an Apache server was sudo service apache2 restart. I haven’t used GCP for a while now.

    Do you know if you’re on an Apache or NGINX web server?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘My website returns Database Error with Google Cloud’ is closed to new replies.