简体   繁体   中英

Database connection error (2): Could not connect to MySQL

I am getting this error on my Joomla site.

Please note:

  • I have checked configuration file and there is no error in it.
  • I get this error few times a day. Without making any change it gets connected and some time this error appears.

Can someone please help in this.

Thanks Dani

This happens when the MySQL server is overloaded, and so it stops responding. If you are on a shared hosting, then you should ask to be moved to a less crowded server. If you are on a VPS (with a fair use policy) or on a dedicated server, then you should enable and check the slow query log for the slow queries causing your MySQL server to crash.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM