Re: php code review and help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 25, 2014 at 2:16 AM, PIYUSH DAS <das.piyush2009@xxxxxxxxx>wrote:

> Kindly consider the following code
>
> function dbOpen()
> {
>
> $this->_dbCon=mysql_connect($this->_dbhostName,$this->_dbUser,$this->_dbPwd)
> or die ("Could not connect DB");
> mysql_select_db($this->_dbName,$this->_dbCon) or die ("Could not select
> DatabaseClass");
> }
>
> i am getting an error
> Warning: mysql_connect() [<a
> href='function.mysql-connect'>function.mysql-connect</a>]: Access denied
> for user 'Piyush'@'localhost' (using password: YES) in
> C:\wamp\www\lib\db.php on line*897*Call Stack
>
> --
> PIYUSH DAS
> LUCKNOW
> 9648916741/9208275121
>


type "show grants for 'Piyush'@'localhost' " and make sure you have the
privilege to access your database

-- 

Best Regards,
HaiwenZhu

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux