PDA

View Full Version : Can't connect to local MySQL server


fred
11-24-2005, 07:04 AM
I've followed all the instructions and have gotten to the final stage of installation but I can't do the final step and keep getting the message

Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I see someone else had the same problem but there were no replies. Please help! I'm a complete novice at this so I need a step-by-step guide as to what might have gone wrong.
Thanks.

Connie
11-24-2005, 08:04 AM
if you cannot connect to the database, follow these question:

- is there a mysql database ?

- do you have the correct connect info for the database?
- - database name
- - database host (for example 'localhost')
- - database user
- - database password

- did you enter these informations into the file /includes/pixelpost.php ?
- did you upload this file to your webspace?

if you answer all questions with "yes"

- your database connect will work

or

- you must contact your hoster because you have wrong information

PP does not demand anything special here, it's absolutely standard
all programs who want to connect to a mysql database need these informations

fred
11-24-2005, 09:01 AM
Danke, Connie. Das ging aber schnell!
Jetzt funktioniert's. Vielen Dank und bis naechstes Problem!!

Connie
11-24-2005, 12:38 PM
I knew it, Ich wusste es ;=)

darkphoenix
11-24-2005, 05:09 PM
My installation didn't work partially because my server/database was not set up correctly for some reason, so I deleted it and re-added it through my hosting company and then it worked when I installed. Also, some of the items were not correct.

- - database name
- - database host (for example 'localhost')
- - database user
- - database password

Just make sure all the information is correct, especially the database name.