Zobia Kanwal
Zobia Kanwal

Reputation: 4723

"Error establishing a database connection" MariaDB has stopped working - Wordpress Packaged by Bitnami localhost

I installed Wordpress Packaged by Bitnami and made a website on it. It was working fine the whole month but now the website stopped working and when access any of the following

I get the following error "Error establishing a database connection"

Manger Tool > Manage Servers shows MariaDB Database Stopped, Apache Web Server Running

When try to Start MariaDB it doesn't start and I get the following:

Manger Tool > Server Events

Starting MariaDB Database... Exit code: 1 Stdout:

Stderr: Unknown error starting mysql

enter image description here

enter image description here

What's the cause and solution?

mysqld

enter image description here

Upvotes: 0

Views: 1809

Answers (1)

Dmitriy
Dmitriy

Reputation: 48

I would recommend you to check the mysqld log file regarding the errors you have, which are triggering it to not to run.

which is in /bitnami/wordpress-5.8.1-2/mariadb/data/mysqld.log

in this file you will find detailed information about the error.

UPDATE

After attaching the log file, I discovered that this issue is similar to this one How to fix Error: MySQL shutdown unexpectedly on Xampp due to Plugin 'Aria', and solution might be applied following the steps:

  1. Remove aria_log_control file from /bitnami/wordpress-5.8.1-2/mariadb/data/
  2. Start the service

Upvotes: 2

Related Questions