• MySQL Access Denied
    12 replies, posted
Please lock, I am an idiot.
I think it means the password for the mysql server is incorrect. [editline]06:00PM[/editline] You sure it's "pass"? Or whatever you might have replaced.
[QUOTE=Dj-J3;24756054]I think it means the password for the mysql server is incorrect. [editline]06:00PM[/editline] You sure it's "pass"? Or whatever you might have replaced.[/QUOTE] The password is definitely correct. It's funny because if I change £con to [php]mysql_connect("localhost:3306", "foo_bar", "pass");[/php] It works. Quick fix but I don't want to resort to doing it like that. [editline]05:08PM[/editline] Is it normal for the error to show the user as "foo" when it's "foo_bar"?
What comes out if you write the variables on the site directly? Are they the same as they should be? If not, i have no idea. :sigh: [editline]06:10PM[/editline] I have no idea if ' and " arn't the same in PHP, but maybe you could try replacing the " with ' in config.php? :3:
Why do you have to "dbName"'s
Ahh that should be dbUser. :v: That fixed it, really sorry for wasting your time I am idiot.
:v: Even i didn't see that, i'm an idiot aswell. :saddowns:
[QUOTE=cbrain;24756219] £con [/QUOTE] What
[QUOTE=turb__;24765785]What[/QUOTE] This. [editline]02:09PM[/editline] PHP's variable sign doesn't change based on local currency. [editline]02:10PM[/editline] [CODE]лвcon[/CODE] [editline]02:10PM[/editline] Or even [CODE]﷼con[/CODE]
He mistyped. Big deal.
[QUOTE=turb__;24765785]What[/QUOTE] What? You forgot to type the "?". Same thing :|
It was a mistype.
Woah, I actually helped someone fix something related to PHP. Time for me to actually learn it now...
Sorry, you need to Log In to post a reply to this thread.