note 37938 deleted from features.persistent-connections by googleguy

From: Date: Tue, 22 Oct 2013 06:51:51 +0000
Subject: note 37938 deleted from features.persistent-connections by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-196681@lists.php.net to get a copy of this message
Note Submitter: web at nickSPAMrabinowitz dot com ---- This may only pertain to Apache/MySQL: After several hours of wrestling with MySQL "Access denied" messages, I determined that persistent database connections don't necessarily reflect subsequent privilege changes. I loaded a PHP script attempting a LOAD DATA statement, and got an "Access denied" error. I granted FILE privileges to the MySQL user, and was able to run LOAD DATA statements from the terminal, but still got "Access denied" from my PHP pages. When I switched from mysql_pconnect() to mysql_connect(), the problem went away; eventually I restarted apache to kill the persistent connection and switched back to mysql_pconnect(), and now everything works fine.

« previous php.notes (#196681) next »