Re: php code review and help

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

 



On Mon, Feb 24, 2014 at 6:27 PM, haiwen zhu <bugwhen@xxxxxxxxx> wrote:

> On Tue, Feb 25, 2014 at 2:16 AM, PIYUSH DAS <das.piyush2009@xxxxxxxxx
> >wrote:
>
> > 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
>

You might also check with your developer and/or DBA and verify which
host/network domain you are supposed to be running this script from. Piyush
may be the correct user name and your password may be correct, but
authenticating from localhost could be a problem if your user credentials
are say (for example) Piyush@server1 or something like that. This could
occur if you are developing locally but the script is meant to be run on a
production or development server for instance.

[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