Jump to content

[SOLVED] Help With Setting/Unsetting Password


limitphp

Recommended Posts

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

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.