Error establishing a database connection still happen in EC2 AWS

Keywords: WordPress - AWS - Technical issue - Other
Description:
Hi I’ve been having a problem with my website, My website is showing "Error establishing a database connection. i already check :

root@xxxxxxxx:/home/bitnami# sudo /opt/bitnami/ctlscript.sh restart
Syntax OK
/opt/bitnami/apache2/scripts/ctl.sh : httpd stopped
/opt/bitnami/php/scripts/ctl.sh : php-fpm stopped
/opt/bitnami/mysql/scripts/ctl.sh : mysql not running
/opt/bitnami/mysql/scripts/ctl.sh : mysql could not be started
/opt/bitnami/php/scripts/ctl.sh : php-fpm started

mysql get trouble, pls help me to solve this problem step by step, thank you for your kind attention

Hi @adigates,

Thanks for using Bitnami. Could you add to this thread the output of mysql.log?

tails -n 50 /opt/bitnami/mysql/data/mysqld.log

and the output of this command?

df -H

Regards,
Ibone.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.