creativkook Posted June 8, 2007 Share Posted June 8, 2007 I have a database set up on the localhost, but it's not connecting for some reason. This is the error I'm getting. Warning: mysql_connect(): Access denied for user: 'login@localhost' (Using password: YES) in /home/mrmcclev/public_html/dbheader.php on line 3 Error: Access denied for user: 'login@localhost' (Using password: YES) Is there anything that this could be? I've checked my password and username and they look the same. Link to comment https://forums.phpfreaks.com/topic/54700-connection-error/ Share on other sites More sharing options...
btherl Posted June 8, 2007 Share Posted June 8, 2007 Can you post your code (with username and password replaced by ****)? Link to comment https://forums.phpfreaks.com/topic/54700-connection-error/#findComment-270530 Share on other sites More sharing options...
creativkook Posted June 8, 2007 Author Share Posted June 8, 2007 Yea, sorry about that. It's: <?php $connection = mysql_connect("localhost", "****", "*****") or die("Error: " . mysql_error()); mysql_select_db("mrmcclev_inventory") or die("Error: " . mysql_error()); ?> Link to comment https://forums.phpfreaks.com/topic/54700-connection-error/#findComment-270870 Share on other sites More sharing options...
bubblegum.anarchy Posted June 8, 2007 Share Posted June 8, 2007 The error suggests a credentials issue, try swapping login for root. Link to comment https://forums.phpfreaks.com/topic/54700-connection-error/#findComment-271167 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.