Re: DB Error: insufficient permissions

From: Date: Sat, 05 Mar 2005 19:02:28 +0000
Subject: Re: DB Error: insufficient permissions
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17873@lists.php.net to get a copy of this message
fluidliqatyahoodotcom wrote:
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().
Does it work right with?: mysql_connect($dbhost, $dbuser, $dbpass) or die('Cannot connect to mysql'); mysql_select_db($dbname) or die('Cannot select database');

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