Hi

I'm trying to install a forum to my website. When I go to the forum the follow error pops up :

SQL Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Query:
DBI:mysql:database=forum;host=localhost;port=3306.

Package: main, File: /home/users/web/b286/sl.robodog2008/public_html/cgi-bin/forum//SQLlib.pm, Line: 654

I went the SQLib.pm file Follow line says :


General Commentary re web database access
Typically, the Web server is installed as an NT service or a Windows 95/98 service.
This typically means that the web server itself does not have the same environment and
permissions the web developer does. This situation, of course, can and does apply to Unix
web servers. Under Win32, however, the problems are usually slightly different.

Defining your DSN -- which type should I use?
Under Win32 take care to define your DSN as a system DSN, not as a user DSN.
The system DSN is a "global" one, while the user is local to a user. Typically, as stated
above, the web server is "logged in" as a different user than the web developer.
This helps cause the situation where someone asks why a script succeeds from the
command line, but fails when called from the web server.
=cut

if ($Global{DB_Driver} =~ m/ODBC/i) {
$dbh = DBI->connect("DBI:ODBC:$Global{DB_DSN}", $Global{DB_UserID}, $Global{DB_Password}) || &DB_Exit("DBI:ODBC:$Global{DB_DSN} <br>Line ".__LINE__ . ", File ". __FILE__);



I do I need to change? Thanks for you help!