For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > March 2005 > DB Error: insufficient permissions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author DB Error: insufficient permissions
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com