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 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. 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? 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? 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 Link to comment https://forums.phpfreaks.com/topic/121202-access-denied/#findComment-624796 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.