Score:0

Starting WordPress site on Google Cloud Platform but "error establishing a connection to the database"

co flag

I am trying to create a WordPress site using Google Cloud Platform. I created the instance and I have everything setup to the point that I have my IP address for the site and have mapped a domain to said IP address. However, the domain name won't actually go to any site and when I try to use the IP/wp-admin/ to access WordPress I get a error establishing connection to the database error message. I have read that it is possibly due to incorrect database credentials in the wp-config file. I am very new to all of this and I'm not sure where to even see that file to check the credentials. Right now, all I have access to is GCP and phpMyAdmin. Help is appreciated. Cheers

John Hanley avatar
cn flag
More details are required. 1) Is MySQL installed on the same instance as WordPress? 2) Did you set up MySQL? Review steps 1 - 5 in this link. Update your question with details on what you configured. Mask private information such as passwords and IP addresses. https://wordpress.org/support/article/how-to-install-wordpress/ Note: you say that you only have access to phpMyAdmin. You will need to set up SSH access. Review this link: https://cloud.google.com/compute/docs/instances/connecting-to-instance
Score:0
cn flag

Despite you did not mentioned very clear, I understand that you have an GCP VM instance where you installed WordPress. If this is the case you can read this article to use it as a guide to edit the wp-config file.

On the other hand, I suggest you this Google website as a start point to have initial information about how to build the WordPress website that you need.

I hope this information could be helpful for you.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.