I am programming a system in php that connects to sql
, but it has become very frequent that I get this error message:
Warning: mysqli :: mysqli (): (HY000 / 1040): Too many connections in /home/u442095798/public_html/conexion.php on line 5 Failed Connection: Too many connections
When researching on the internet I found that you can see the connections you can write in SQL
the following command:
show status like '%onn%';
Shows that 175342417 connections have been used, this number of connections increases even if the website is not open.
I have not been able to find a solution to the connection problem.
Could you tell me if it is possible to reset the values of the connections from php?