in reply to Perl Script connecting to Mysql works from command prompt, not from Apache
So the problem is a sockets problem
(Question: why would a command prompt execution use a different socket from the apache execution??)
Using find / -name mysql.sock yields it in /var/lib/mysql/mysql.sock. Since this is not where the error is I
looked to see how mysql is configured by typing mysqladmin version. This is the result:
mysqladmin Ver 8.18 Distrib 3.23.35, for pc-linux-gnu on i686 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software +, and you are welcome to modify and redistribute it under the GPL licens +e Server version 3.23.35 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/lib/mysql/mysql.sock Uptime: 29 min 46 sec Threads: 1 Questions: 1 Slow queries: 0 Opens: 6 Flush tables: 1 +Open tables: 0 Queries per second avg: 0.001
Clearly the server is configured correctly, so the problem must be one step pack, in the DBI or the DBD::mysql
I'm still hunting for where the /tmp/mysql.sock is specified, but I thought I'd give you this update.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Perl Script connecting to Mysql works from command prompt, not from Apache
by Yohimbe (Pilgrim) on Apr 15, 2001 at 21:04 UTC | |
by gary kuipers (Beadle) on Apr 15, 2001 at 21:33 UTC | |
by bjelli (Pilgrim) on Apr 15, 2001 at 21:48 UTC | |
by eejack (Hermit) on Apr 15, 2001 at 21:53 UTC |