...

View Full Version : Connection Error



ssskaya
11-27-2002, 11:16 AM
I am new to PHP and MySQL Databases.

I just inserted a poll to my website (The poll of www.proxy2.de). But it gives this error message:

MySQL Error : Connection Error
Error Number: 2002 Can't connect to local MySQL server through socket '/tmp/mysql.sock' (46)

I suspect one of the reasons this may be happening is that I need to change Host names in the configuration files from "host" to "mysql".

But how do I know which files are configuration files among a variety of files? And how do I know what parts of the script to change.

Please advise.

Thanks!

firepages
11-27-2002, 01:42 PM
most scripts have a README or INSTALL file that contains config hints, if not look for a file with 'config' in the name, generally you will find one , if not look for a file with 'conn' or 'db' in the name, they are not usually that hard to find, alternately see if the place you got the script from has a help forum or FAQ.

Nightfire
11-27-2002, 07:49 PM
includes/config.inc.php



$POLLDB["dbName"] = "Database name";
$POLLDB["host"] = "localhost";
$POLLDB["user"] = "Your database username";
$POLLDB["pass"] = "Your database password";


That's all you need to change

ssskaya
11-28-2002, 03:08 AM
thanks a lot.

it was a lot easier than it seemed. I thought I was gonna have to work with all the files.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum