PDA

View Full Version : connect to database FAILED


iLuvThisSite
Wed 11th Jul '07, 3:15pm
Hi,

I'm trying to run a new install and I get the following error on Step2) Connect to Database:

Attempting to attach to database
Error description: mysql_connect() [function.mysql-connect (http://forums.modiinli.com/install/function.mysql-connect)]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) /homepages/17/d200621773/htdocs/forums/includes/class_core.php on line 273
The database has failed to connect because you do not have permission to connect to the server. Please confirm the values entered in the 'includes/config.php' file.


Any help would be greatly appreciated.
AB

Zachery
Wed 11th Jul '07, 3:16pm
the error message is fairly clear, ask your webhost about what information you should be using.

iLuvThisSite
Wed 11th Jul '07, 4:38pm
the error message is fairly clear, ask your webhost about what information you should be using.

is there specific info that I should be asking for? I mean i understand the part of the message about not having permissions. But the rest of it is like chinese to me. Could you tell me specifically what to ask my host for?

TIA

Zachery
Thu 12th Jul '07, 2:20am
You need a mysql database name, as well as a mysql username and password who have permission to use the database.

iLuvThisSite
Thu 12th Jul '07, 4:03pm
I have 1and1 as my host and from the control panel I created a mysql database. I am able to see the database name, username & password and put all that into the config.php file yet I'm still getting the same error.
When I called 1and1 and asked them if I was looking at the correct place they confirmed that I was.
Any other ideas?

Yours Truly
Thu 12th Jul '07, 4:13pm
Password is case sensitive? And maybe its not localhost as the server name

iLuvThisSite
Thu 12th Jul '07, 5:14pm
THANK YOU ....it's working.
i think it was the server name.

Yours Truly
Fri 13th Jul '07, 6:53am
With big places like that they are normally different =]