Re: php code review and help
| From: | George Wilson | Date: | Tue, 25 Feb 2014 17:21:11 +0000 |
| Subject: | Re: php code review and help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-322980@lists.php.net to get a copy of this message | ||
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.