Since 14.2. my site is giving this error: Error establishing a database connection

I have a Wordpress site at Google Cloud Platform ID XXXXX-XXXXX-XXXXX I have not changed anything for several months, everything has been fine until now. How to fix this. Is there a way to register a support issue with GCP?

1 Answer 1


I replaced your domain name and platform id because this is a public forum and it's required to avoid sharing private information about your project. Please next time keep in mind that.

I am part of the support team, but for your case it's better to create a support case because we need to get more information to troubleshoot the issue.

We need to know which product are you using exactly, please check this official documentation. Or you are just using your self-hosted Wordpress on a Virtual Machine?

You can find a similar issue in the following Google Groups forum. I suspect that having your webserver unmanaged for a few months can lead to a memory related issue. So best thing you could do is to ssh into the machine, check database logs (/var/log/mysql/) and check database service status $ sudo systemctl status mysqld.service.

  • It seem mysql is not running and and does not start from the comman line: Feb 17, 2021 at 14:55
  • tkoskine@wordpress-multisite-1-vm:/opt/bitnami$ sudo /opt/bitnami/ctlscript.sh start mysql /opt/bitnami/mysql/scripts/ctl.sh : mysql could not be started Monitored mysql tkoskine@wordpress-multisite-1-vm:/opt/bitnami$ sudo /opt/bitnami/ctlscript.sh status php-fpm already running apache already running mysql not running Feb 17, 2021 at 14:55
  • Please check $ sudo systemctl status mysql.service and logs in /var/log/mysql/error.log or similar.
    – Pit
    Feb 17, 2021 at 15:05
  • my /var/log directory listing looks like this: Which files should I check? apt auth.log btmp debug dpkg.log gonit.log kern.log messages ntpstats syslog unattended-upgrades user.log wtmp Feb 17, 2021 at 17:32

Not the answer you're looking for? Browse other questions tagged .