database is offline error runcloud

Fix Error: Your database is offline on

I have been playing around with with Google Cloud VM/VPS. While the installation creates a default username/password for accessing the DB; for some reason, on my server, the password was not the same as what showed up at end of the installation.

I do not know why this happened. Perhaps re-install process was the culprit. Anyhow, I was not able to create a Database or User. I would enter the information but upon refresh, no Database was present. When I checked in the Error logs however, the error that came up was:

Your database is offline. Please start your database to add new database.

This was solved by fixing the password as per instructions of when you go to add a Database:

If you have changed your root database password, please insert your new password in /etc/mysql/my.cnf or adding new database won't work.

Just SSH as root to your server and add the correct password for MySQL root in the config file /etc/mysql/my.cnf

Published by


Full time G33K for the last 20 years. I write about Technology.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.