Question

Wordpress (fresh install) site not loading in/very slow

I signed up for the $5 droplet plan for a wordpress site. Fresh install, only plugins are Yoast so far. The theme is one of the default ones (twenty-21). Sometimes, I can get into the website and everything works normally.

Lately, a lot of the times, the page just hangs while loading. I’ll often be sent to this wordpress page:

Error reconnecting to the database This means that we lost contact with the database server at localhost. This could mean your host’s database server is down.

Are you sure the database server is running? Are you sure the database server is not under particularly heavy load? If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

I’ll try on my phone with a data connection (not using my home wifi), and it won’t even recognize the domain sometimes (sends me to default AT&T search for my domain name).

I know I set my domain up correctly, because it does work sometimes. I just have to wait 10-20 minutes or so, and the website will work again for another 10-20 minutes.

Subscribe
Share

Did you make any progress with this? I’ve exactly the same issue. I know it is setup correctly but it is painfully slow sometimes, acceptable other times, and often just times out.


Submit an 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.

Hi @Baldwinngo

I assume you have the database hosted on the same server, is that correct? When you configured Wordpress what IP/DNS did you set in the database field?

Have you checked the MySQL log?, the default locaton on Ubuntu system is /var/log/mysql/error.log, the error logs are most easily read with less program.

  1. sudo less /var/log/mysql/error.log

Check your DNS records and MySQL logs, they can help you find out what’s going on.

Regards,

Sergio Turpín