Keywords: WordPress - AWS - Technical issue - Other
Description:
Hello, my site became inaccessible yesterday morning, for no apparent reason.
I'm using Wordpress on an Amazon Lightsail instance.
I now have an HTTP 500 error code : Error establishing a database connection
guidejv.com
I tried to disable plugins with FileZilla, checked the wp-config file.
I switched to an instance with more storage.
I have this error message in my debug.log file:
PHP Warning: mysqli_real_connect (): (HY000 / 2002): No such file or directory in /opt/bitnami/apps/wordpress/htdocs/wp-includes/wp-db.php on line 1633
Line 1633 in the wp-db file:
mysqli_real_connect ($ this-> dbh, $ host, $ this-> dbuser, $ this-> dbpassword, null, $ port, $ socket, $ client_flags);
I used the support tool here is the code:
e52723c1-7470-4564-adcf-723c488deb30
I ran out of ideas