firecat318 Posted March 11, 2008 Share Posted March 11, 2008 I've been trying to get connected to my SQL database but I keep getting an error that says : Warning: mysql_connect(): Access denied for user 'ultimate'@'serv2.freehostia.com' (using password: YES) in /home/www/firecat111.freehostia.com/database.php on line 2 Access denied for user 'ultimate'@'serv2.freehostia.com' (using password: YES) I'm not using the password YES obviously... any help? Quote Link to comment https://forums.phpfreaks.com/topic/95536-cant-connect/ Share on other sites More sharing options...
derrick1123 Posted March 11, 2008 Share Posted March 11, 2008 Instead of: serv2.freehostia.com Try: localhost -derrick1123 Quote Link to comment https://forums.phpfreaks.com/topic/95536-cant-connect/#findComment-489086 Share on other sites More sharing options...
firecat318 Posted March 11, 2008 Author Share Posted March 11, 2008 Tried it.. doesn't work. Quote Link to comment https://forums.phpfreaks.com/topic/95536-cant-connect/#findComment-489877 Share on other sites More sharing options...
fenway Posted March 11, 2008 Share Posted March 11, 2008 You either have the wrong password or you're connecting from a new host. Quote Link to comment https://forums.phpfreaks.com/topic/95536-cant-connect/#findComment-489899 Share on other sites More sharing options...
derrick1123 Posted March 17, 2008 Share Posted March 17, 2008 If its on a shared network wouldn't it be: URL = 'username'.'network'.'ext' DBusr = 'username'_'DBusername' ? Quote Link to comment https://forums.phpfreaks.com/topic/95536-cant-connect/#findComment-494020 Share on other sites More sharing options...
aschk Posted March 17, 2008 Share Posted March 17, 2008 Simply put, this is NOT a valid mysql user ('ultimate'@'serv2.freehostia.com'). i.e. it doesn't exist in the MySQL user table. Perhaps the user is 'ultimate'@'localhost' or 'ultimate'@'%' but unfortunately we cannot guess. you need to check your credentials with the database administrator. It is worth noting that the latter part of the username (i.e. the domain part) MUST be the domain you are connection FROM. So if i connect from my PC here it'll be 'myusername'@'123.234.345.456' which represents the ip address of my adsl/cable/modem connection. Quote Link to comment https://forums.phpfreaks.com/topic/95536-cant-connect/#findComment-494040 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.