I'm editing a page on localhost, but suddenly it can no longer connect to the database. It times out after 60 seconds and gives the error given in the title of this post.
It is using the same connection as the live app (which is working). It has worked for years, and the code that sets up the database connection has ever been unchanged. Suddenly it decided to stop working.
Any ideas why?
check your config.php especially this 2 credentials: password && user
Becoz sometimes it (I don't know why???? ) changes to "root", not "admin"...
If you connected to database on external server ( == not locally installed), then,probably, server owner rebound mysqld to localhost for security reasons. 60 seconds is default socket timeout in PHP settings
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.