Hi I am using my domain from cloud flare. I instal in my droplet Wordpress One Click Install .After install ı upload my local backup word press with all in one migration plugin. But web site some time opening very fast ,some time to slow ,some time database error connection, some time “Error establishing a database connection” after refresh some time opening. I don’t understand what is wrong . I need help:)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello there,
I’ll recommend examining the server logs and checking if the MySQL service is not affected due to a lack of server resources. MySQL might be down due to low memory and this can explain the “Error establishing a database connection” error.
We have a pretty good tutorial on How To Debug the WordPress “Error Establishing Database Connection” which you can check here:
https://www.digitalocean.com/community/tutorials/how-to-debug-the-wordpress-error-establishing-database-connection
Regards
Hi @alphan,
This seems to be an issue with the plugin more than the droplet itself.Error establishing a database connection more often than not means that you have a wrong database user password in your wp-config.php. Additionally, your user might not have sufficient permissions to enter/access the Database, but this shouldn’t be the case if you’ve followed all steps of completing the WordPress one-click droplet setup.