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.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi I have some problem. SOme time fine some time to slow sime time error databe. Did you find solition?

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