Ashoar Posted August 25, 2008 Share Posted August 25, 2008 I am setting up my browser based game on a webhost, and i have just come across a problem and i am unsure on how to fix it at the moment. This pop up jumps up each time the page is loaded or refreshed, it pops up 2 times before the page loads. It is an error acsess MYSQL i think. This is the message that pops up "Access denied for user 'a3946191_ashoar'@'localhost' (using password: YES) 'a3946191_ashoar' is my username for the MYSQL database that is on the webhost. So does anyone know how to fix this? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/121202-access-denied/ Share on other sites More sharing options...
JasonLewis Posted August 25, 2008 Share Posted August 25, 2008 Go into phpMyAdmin and make sure that that the user exists and that they have sufficient privileges. Quote Link to comment https://forums.phpfreaks.com/topic/121202-access-denied/#findComment-624784 Share on other sites More sharing options...
Ashoar Posted August 25, 2008 Author Share Posted August 25, 2008 I have all privilages, so that cant be the problem. Think their could be any other solutions? Quote Link to comment https://forums.phpfreaks.com/topic/121202-access-denied/#findComment-624793 Share on other sites More sharing options...
Fadion Posted August 25, 2008 Share Posted August 25, 2008 Have you set a password as a parameter in mysql_connect()? EDIT: Have you used mysql_connect? Quote Link to comment https://forums.phpfreaks.com/topic/121202-access-denied/#findComment-624794 Share on other sites More sharing options...
Ashoar Posted August 25, 2008 Author Share Posted August 25, 2008 Oh i just found my problem. I had LocalHost set as the MYSQL host in one of my PHP files. I just needed to swap it over too my hosts one. Thanks for the help guys Quote Link to comment https://forums.phpfreaks.com/topic/121202-access-denied/#findComment-624796 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.