swampone Posted December 27, 2010 Share Posted December 27, 2010 Im developing a registration script and using godaddy as my host. Im getting "Access denied for user 'headstyle1'@'%' to database 'users'" when running the registration script. Is there some kind of permission I have to set? Quote Link to comment https://forums.phpfreaks.com/topic/222739-access-denied-to-mysql/ Share on other sites More sharing options...
Rifts Posted December 27, 2010 Share Posted December 27, 2010 you need to make sure your connection creds are correct. you can not you 'localhost' Quote Link to comment https://forums.phpfreaks.com/topic/222739-access-denied-to-mysql/#findComment-1151806 Share on other sites More sharing options...
swampone Posted December 27, 2010 Author Share Posted December 27, 2010 mysql_connect("headstyle1.db.xxxxxxx.hostedresource.com", "headstyle1", "Swampone4") or die(mysql_error()); mysql_select_db("users") or die(mysql_error()); Connection creds are correct. Quote Link to comment https://forums.phpfreaks.com/topic/222739-access-denied-to-mysql/#findComment-1151808 Share on other sites More sharing options...
swampone Posted December 27, 2010 Author Share Posted December 27, 2010 scratch that last message. the database is not called users its called headstyle1. Sorry Quote Link to comment https://forums.phpfreaks.com/topic/222739-access-denied-to-mysql/#findComment-1151810 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.