limitphp Posted July 26, 2009 Share Posted July 26, 2009 I remember when i first setup my site on lunarpages, I had to deal with this error, where I was using the wrong password, or I wasn't using a password, I forgot. I got it working months ago...but then my account was reset because I delayed reactivating my account and thats when all the same errors popped back. Here's the error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'greckle0_greckle'@'localhost' (using password: YES) in /home/greckle0/public_html/inc_connGreckle.php on line 2 Failed to connect to the database: Access denied for user 'greckle0_greckle'@'localhost' (using password: YES) Here's my include connection code: <?php $con = mysql_connect('localhost', 'username', 'password') or die ('Failed to connect to the database: '.mysql_error()); mysql_select_db ('greckle0_lptest',$con); ?> Where I have username and password, I have the real one...I just didn't want to post it. I haven't changed the password. Actually, the only password I have is to login to lunarpages...to the control panel. This may sound like a stupid question, but how do I know if my database is password protected? thanks Link to comment https://forums.phpfreaks.com/topic/167451-solved-help-with-settingunsetting-password/ Share on other sites More sharing options...
limitphp Posted July 26, 2009 Author Share Posted July 26, 2009 nevermind...I figured out how to add users to a database and give them all access. Link to comment https://forums.phpfreaks.com/topic/167451-solved-help-with-settingunsetting-password/#findComment-882972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.