note 37938 added to features.persistent-connections
| From: | web at nickSPAMrabinowitz dot com | Date: | Tue, 02 Dec 2003 19:41:14 +0000 |
| Subject: | note 37938 added to features.persistent-connections | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61289@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/features.persistent-connections.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+37938
Delete -- http://master.php.net/manage/user-notes.php?action=delete+37938&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+37938&report=yes
Search -- http://master.php.net/manage/user-notes.php