"Claus Jul Larsen" <clausanne@mail.dk> writes:
> Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)
> at /usr/lib/perl5/site_perl/5.6.1/TravelDoctor/GlobalData.pm line 31.
>
> Når jeg kører ikke mod_perl, så virker det perfekt. Er der nogen som har et
> forslag? Jeg overholder naturligvis strict m.m. Kører ALT med globale
> variabeler og har lavet en mod_perl_startup.pl som eksvereres via genstart
> af httpd.
Lidt søgning på nettet (Google: "perl connect MySQL server") viste at
problemet formentlig skyldes at mysql.sock ligger et andet sted end
angivet ovenfor.
Fra en af siderne:
I get the following error during the standard installation of PSA:
Warning: MySQL Connection Failed:
Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock'
This error occurs because the mysql.sock file is specified to be
placed in the /usr/lib/mysql/ directory. PSA's installation of mysql
looks for the mysql.sock file in the /tmp/ directory and fails. This
can be fixed by modifying the /etc/my.cnf file so that the mysql.sock
file is located in the /tmp/ directory.
--
Thorbjørn Ravn Andersen
http://homepage.mac.com/ravn