DB Error: insufficient permissions

From: Date: Sat, 05 Mar 2005 18:56:02 +0000
Subject: DB Error: insufficient permissions
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17871@lists.php.net to get a copy of this message
I don't understand why I keep getting the error "DB Error: insufficient permissions" when everything is right. I have something like: $dsn = array( 'phptype' => 'mysql', 'username' => $dbuser, 'password' => $dbpass, 'hostspec' => $dbhost, 'database' => $dbname, ); $db = DB::connect($dsn); if(DB::isError($db)) { die($db->getMessage()); } The username, password, db name, everything, are correct. It works fine with mysql_connect(). I tried using $dsn = "mysql://$dbuser:$dbpass@$dbhost/$dbname"; instead to see if it works but it didn't work still. I checked the DB.php and found that the error to this message is DB_ERROR_ACCESS_VIOLATION. What is this problem? My $DSN is definitely correct. So are my database connecting information. --------------------------------- Celebrate Yahoo!'s 10th Birthday! Yahoo! Netrospective: 100 Moments of the Web

« previous php.pear.general (#17871) next »