Today, I met a netizen who mentioned that the website built on a cloud server selected during the mid year rush had an "Error establishing a database connection" failure. Then help him check and record it. When checking, I saw that the above mentioned problem occurred when his website was opened, which seems to be a database failure.
This is usually the prompt when the database stops working. Go to the background to see if this is the case.
It can be seen that he cannot log in to the database, which should be like this. Because the database has been stopped.
As expected, the MYSQL database in his panel is stopped. How to solve this problem?
Here Lao Zuo sees that his server has 1GB of memory and is actually installed with MYSQL5.6, so I backup his database and then install 5.5 to import it. Generally, MYSQL5.6+is installed only when the memory is more than 2GB.
After all, the resources are still scattered after installing the panel, so it is recommended that he upgrade to 2GB of memory. There are three websites in his server. It is suggested that he put one in order to reduce the occupation of resources by the server.
The temporary problem is to solve, and we will see later.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge