Forgot Mysql Password Forgot Mysql Password
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Forgot Mysql Password

Started by rocky2889, January 31, 2005, 09:02:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rocky2889

I have backup database and restore in another host. I forgot the password to the database. I got this error when restore the database when I access the site. Is there anyway to recover the password?

Thanks

Rocky

Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user: 'lamfoto2_copp1@localhost' (Using password: YES)


Aditya Mooley

Open config.inc.php in "include" folder and check whether the value of the variable $CONFIG['dbpass'] is your lost password.
If no, contact your web host.
--- "Its Nice 2 BE Important but its more Important 2 Be NICE" ---
Follow Coppermine on Twitter

OmegaGOD

If your using cPanel and Fantastico and your web hosting provider has MD5 password encryption turned on then the entry attributed to the variable $CONFIG['dbpass'] will be encrypted. There is a fix though. Using Fantastico, create a second installation of CPG and enter the password you want to use during the installation stage. DO NOT install over your current installation. Put the second installation in a different location. Next open config.inc.php in "include" folder from the new installation of CPG you just did. Copy the variable entry for $CONFIG['dbpass'] from the new installation to the original installation. Then simply delete the second installation of CPG. [DONE]

or if you have shell access you can simply use the crypt command with your password to get the MD5 entry.
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

rocky2889

Thanks for your help.

Work Perfect

Rocky