4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: Anyanka on September 25, 2005, 08:56:58 PM

Title: installation prob -> Could not connect to the database server
Post by: Anyanka on September 25, 2005, 08:56:58 PM
i just got my new domain name , however i installed images to the new server but i got this message


Warning: mysql_connect(): Access denied for user: 'fehr_poupa@localhost' (Using password: YES) in /home/fehr/public_html/gallery/includes/db_mysql.php on line 39

DB Error: Could not connect to the database server (localhost, fehr_poupa).


i don't know wjhat did i do wrong :( can someone help me please??
Title: Re: installation prob -> Could not connect to the database server
Post by: Anyanka on September 27, 2005, 09:04:30 PM
a little help is needed please? :(
Title: Re: installation prob -> Could not connect to the database server
Post by: Nicky on September 28, 2005, 07:40:52 AM
i just got my new domain name , however i installed images to the new server but i got this message


Warning: mysql_connect(): Access denied for user: 'fehr_poupa@localhost' (Using password: YES) in /home/fehr/public_html/gallery/includes/db_mysql.php on line 39

DB Error: Could not connect to the database server (localhost, fehr_poupa).


i don't know wjhat did i do wrong :( can someone help me please??

WRONG MYSQL ACCESS DETAILS  :roll:, contact your webhoster for correct mysql details !!
Title: Re: installation prob -> Could not connect to the database server
Post by: Anyanka on September 29, 2005, 07:57:37 AM
Thank you Nicky, but how is it wrong? is there anyway i can fix it without contacting my webhost?
Title: Re: installation prob -> Could not connect to the database server
Post by: Nicky on September 29, 2005, 08:47:16 AM
pls, do not double post..

you have entered: wrong username OR password OR mysql database OR mysql host server..

that is
Title: Re: installation prob -> Could not connect to the database server
Post by: Jdm on February 17, 2006, 11:39:59 AM
Hi!
I have searched the whole site now and I would like to ask.
I had my gallery working with a database imga1.
I copied it to another directory and wanted to have a database imga2 to it.
When I changed my config.php, only in the database name I got that connection error. Since than IŽve been trying everything I could.
The last thing I did was really STUPID! I deleted my imga1 :oops:
Now I try to reupload the sql file and the error continues!?!

And now, who could save me?
 :cry:
Title: Re: installation prob -> Could not connect to the database server
Post by: TheOracle on February 17, 2006, 02:01:50 PM
Quote

And now, who could save me?


The question is not "who" but "what" could save you most likely. Before you deleted imga1's database, did you made a backup of it ? If so, simply go to your phpmyadmin and restore your previous database entries by re-importing your SQL files. All should be re-stablized from there. ;)
Title: Re: installation prob -> Could not connect to the database server
Post by: Jdm on February 17, 2006, 02:38:06 PM
Hi the Oracle!
Yes I had a backup :) I could restore it :wink:

But there is something related to config.php and includes/db_mysql.php on line 39

When I first tryed to restore it, it kept giving me the connection problem.

The only solution was to install a fresh 4images via fantastico, than I restored the sql and copied all the old files to my new installation except for  config.php and the includes/db_mysql.php.

This worked, but I still would like to know what is the relation with these two that doesnt allow the database to connect if you change to another database...
 :roll:
Title: Re: installation prob -> Could not connect to the database server
Post by: TheOracle on February 17, 2006, 03:27:56 PM
Quote

I still would like to know what is the relation with these two that doesnt allow the database to connect if you change to another database...


Well, if you have the same server name, login name and password and simply a different database name, I don't see how this could really affect. Perhaps there might be a slight difference on your mySQL account you forgot to modify in config.php file ? ;)
Title: Re: installation prob -> Could not connect to the database server
Post by: Jdm on February 19, 2006, 04:19:46 PM
Yes, maybe... IŽll check this out  :wink: