Home > Bookmarks, Hosting, PhP > Disable MySQL Persistent Connections

Disable MySQL Persistent Connections

October 30th, 2007 Leave a comment Go to comments

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

  1. No comments yet.
  1. No trackbacks yet.
GoCache - ByREV-Cache v1.0 - live served in : 0.158388 sec (gzip)