简体   繁体   中英

Cannot connect to Wordpress database after installing Wordpress on Google Cloud

This morning I installed Wordpress on Compute Engine on Google Cloud. But I am not able to connect to the Wordpress site. I got the login info and when I logged in, there was the Wordpress dashboard. But as soon as I clicked a menu item, it said the database was not connected.

I followed the instructions in a video, but when I pressed SSH to connect to SQL, I did not get the same option as the video instructor had. I don't know if that is what caused the error.

Please help. Thanks

There is not enough information about what the issue is, as per your description it seems the database is not running. I recommend you review this article about most common issues related to establishing a database connection in WordPress.

On the other hand, take a look at the click-to-deploy WordPress solutions from the Google Cloud MarketPlace . There are easy solutions to deploy all necessary WordPress packages (database included) to Compute Engine. Here a guide.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM