coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: AngelC on December 04, 2006, 11:05:12 PM

Title: Coppermine critical error: Unable to connect to database !
Post by: AngelC on December 04, 2006, 11:05:12 PM
Hi this afternoon my gallery drop when i change in FTP the IP of the server and now appear this.
Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'fotosdon'@'localhost' (using password: YES)
I try include/config.inc.php using the a new user and pass with privileges, but nothing.
Hot i can to do???
my web is www.fotosdonosti.com
Thanks
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: François Keller on December 04, 2006, 11:21:27 PM
Hi,

Check your config.inc.php
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: AngelC on December 04, 2006, 11:28:17 PM
Quote from: Frantz on December 04, 2006, 11:21:27 PM
Hi,

Check your config.inc.php

I try but nothing...

...
Im changing this configuration.but always the same message........if a change dbuser in the error message appear like 'fotosdon'@'localhost'
// MySQL configuration
$CONFIG['dbserver'] =                         'localhost';        // Your databaseserver
$CONFIG['dbuser'] =                         'fotosdonosti';        // Your mysql username
$CONFIG['dbpass'] =                     'xxxxxxxxxxxxxxxx';                // Your mysql password
$CONFIG['dbname'] =                       'fotosdonosti';        // Your mysql database name

...

More ideas?
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: Joachim Müller on December 05, 2006, 05:52:24 AM
Are you making the mySQL data up or are you sure that it is correct? I suggest asking your webhost for support.
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: AngelC on December 05, 2006, 09:05:53 AM
The process....
1.- I lose mi pass and username to access by ftp to my web page to upload files.
2.- They send to me the information.  my Domain, ip number, username and pass.
3.- Ip number and pass are diferent than other time but runs in Ftp.
4.- I cant enter to my web appear Coppermine critical error.
5.- I configure include/config.inc.php using with combination of password username and database names...
6.- Web don´t runs.
7.-i make new user and password for the database with all privileges
8.-.......dont work.

Question:
1.- Why appear all time "fotosdon" if i change in include.inc.php? MySQL said: Access denied for user 'fotosdon'@'localhost'

2.-
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: Joachim Müller on December 05, 2006, 09:15:21 AM
Obviously the username "fotosdon" is the mySQL username that you specified in include/config.inc.php.
As I suggested: ask your webhost for support - maybe they changed something in your mySQL setup when they recovered your lost FTP access data.
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: AngelC on December 05, 2006, 02:39:16 PM
Quote from: GauGau on December 05, 2006, 09:15:21 AM
Obviously the username "fotosdon" is the mySQL username that you specified in include/config.inc.php.
As I suggested: ask your webhost for support - maybe they changed something in your mySQL setup when they recovered your lost FTP access data.

I think that if i put dbUsername  fotosdon with the correct password and database name.... the gallery have to work??
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: AngelC on December 05, 2006, 02:42:40 PM
I can know whit php my admin all information pass and more off my MYSql Date base??? Where is the information?
Thanks
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: magnum on December 05, 2006, 02:51:40 PM
You can't retrieve the information using phpmyadmin, because the passwords are stored encrypted.

Again: You have to ask your webhoster.
Title: Re: Coppermine critical error: Unable to connect to database !
Post by: AngelC on December 05, 2006, 03:22:52 PM
OMG !!! i have my WEB ONLINE !!!! Thanks for your help :)

I found the problem....was very easy... in ftp i had config.inc.php and config.inc.php .... i delete config.inc.sample and i configure config.inc.php and now Work perfect.
Thanks a lot :D