note 6502 deleted from mysql_query by danbeck
| From: | danbeck@php.net | Date: | Thu, 07 Sep 2000 17:18:32 +0000 |
| Subject: | note 6502 deleted from mysql_query by danbeck | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4426@lists.php.net to get a copy of this message | ||
I just had the same problems with sql queries not working. I found the problem was that if you dont
specify a user and password on the mysql_connect statement it will use the default web server user
(often nobody.nobody for apache). If that user doesnt have access to the database then the sql
commands wont work.
either specify a user that has access (recommended) or give the webserver user access to the db
(security hole!)