Re: DB Error: insufficient permissions

From: Date: Sun, 06 Mar 2005 08:49:52 +0000
Subject: Re: DB Error: insufficient permissions
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17880@lists.php.net to get a copy of this message
Oh. I got it working now. It was my host whom had the problem. Thanks! :) Marek Kilimajer <lists@kilimajer.net> wrote: 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'); __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

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