[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-general
Subject:    Re: [PHP] php code review and help
From:       George Wilson <rmwscbt () gmail ! com>
Date:       2014-02-25 17:21:11
Message-ID: CAPH0Pya2VPp2uW-jgHJPoJmDA4yAiO_OTBQsf3hQKuqSEwM73w () mail ! gmail ! com
[Download RAW message or body]


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

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic