Disable MySQL Persistent Connections

 

Disable MySQL Persistent Connections

To disable persistent connections with PHP, you have to set the parameter “mysql.allow_persistent” to “Off” into “/etc/php.ini” file.

[MySQL]
; Allow or prevent persistent links.
mysql.allow_persistent=Off

save php.ini and restart apache:

# apachectl restart

or

# ./usr/sbin/apachectl restart


Post a Comment