[MTOS-dev] MT 4.1 newbie - database problem

Toni Mueller support at oeko.net
Mon Apr 21 10:35:16 PDT 2008



Hi,

to offset any other problems, I went to manually create an
mt-config.cgi file, which I am sure gets read. I use MySQL for the time
being, but hope to move to Pg some day. Anyway... I now get the
following error out of mt.cgi (this is Lighty 1.4.19 under OpenBSD 4.2,
MySQL 5.0.45):

----------------
Got an error: Connection error: Can't connect to local MySQL server
through socket '/var/run/mysql/mysql.sock' (13) at
lib/MT/ObjectDriver/Driver/DBD/mysql.pm line 49
 at lib/MT/ObjectDriver/Driver/DBD/mysql.pm line 49
----------------

The problem is that the path is correct (so there should not be a need
to set it up explicitly), and that the user and password are also
correct - I'm root on the machine in question, and I verified the
settings by using the 'mysql' command line application (ie, I can log
in without any problems). I changed the Unix domain socket, implied by
'localhost', to a TCP socket using 127.0.0.1, but to no avail - the
error message changes accordingly, but the problem persists.

Unfortunately, there aren't any other error messages that I could find,
esp. nothing in MySQL's logs. Does MT have something like a debug mode
that is suitable for debugging this kind of stuff? Setting

DebugMode 15

in mt-config.cgi didn't help a bit.


What gives?


Kind regards,
--Toni++



More information about the MTOS-dev mailing list