An error occurs when the website space is submitted. how can this problem be solved. Error message:
The space shows that the CPU and maximum number of connections are full:
Why does mysql_close go wrong? How can I handle the maximum number of connections.
Reply to discussion (solution)
The default connection count for mysql is 100. why is it 15.
You can modify the big point to see.
Go to the MySQL installation directory and open the MySQL configuration file my. ini or my. cnf to find max_connections = 15 and change it to max_connections = 200.
Looking at the interface, it is estimated that the operator has made restrictions. This space is much smaller than free space such as 000webhost.
Are you using persistent connections?
The default connection count for mysql is 100. why is it 15.
You can modify the big point to see.
Go to the MySQL installation directory and open the MySQL configuration file my. ini or my. cnf to find max_connections = 15 and change it to max_connections = 200.
The website space does not have this modification permission =
Are you using persistent connections?
Long links are not used, so it is hard to understand. Is PHP automatically recycled even if it does not close the connection? is this method not automatically recycled?
The problem should not be here.
So? Provided? Station empty? ? ? ?? .
So? Provided? Station empty? ? ? ?? .
After communication, the reply was a program problem, but every time I close the database connection, I don't know where to fill up the number of connections.
You just define a function. how can you determine what is going wrong?