Author Topic: installation prob -> Could not connect to the database server  (Read 9416 times)

0 Members and 1 Guest are viewing this topic.

Offline Anyanka

  • Pre-Newbie
  • Posts: 3
    • View Profile
installation prob -> Could not connect to the database server
« 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??
« Last Edit: September 29, 2005, 08:48:21 AM by Nicky »

Offline Anyanka

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #1 on: September 27, 2005, 09:04:30 PM »
a little help is needed please? :(
« Last Edit: September 29, 2005, 08:49:40 AM by Nicky »

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #2 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 !!
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Anyanka

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #3 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?
« Last Edit: September 29, 2005, 08:49:04 AM by Nicky »

Offline Nicky

  • Administrator
  • 4images Guru
  • *****
  • Posts: 3.195
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #4 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
cheers
Nicky
Your first three "must do" before you ask a question ! (© by V@no)
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

nicky.net 4 4images
Signature stolen from mawenzi

Offline Jdm

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #5 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:

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #6 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. ;)

Offline Jdm

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #7 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:

Offline TheOracle

  • Hero Member
  • *****
  • Posts: 875
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #8 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 ? ;)

Offline Jdm

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: installation prob -> Could not connect to the database server
« Reply #9 on: February 19, 2006, 04:19:46 PM »
Yes, maybe... IŽll check this out  :wink: