| Fluidliqatyahoodotcom 2005-03-05, 3:57 pm |
|
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
|