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. Quote Link to comment 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 ****)? Quote Link to comment 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()); ?> Quote Link to comment 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. Quote Link to comment 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.