>>>>> "Daevid" == Daevid Vincent <daywalker@stripped> writes:
Daevid> I can't seem to get the "make test" to work with "Msql-Mysql-modules-1.2014"
Daevid> the server is running fine, and I can connect as nobody or root or whomever
Daevid> else, and PHP3 is working fine connecting to the databases as well.
Daevid> # mysqladmin -h localhost version
Daevid> mysqladmin Ver 7.11 Distrib 3.22.22, for pc-linux-gnu on i686
Daevid> TCX Datakonsult AB, by Monty
Daevid> Server version 3.22.22-log
Daevid> Protocol version 10
Daevid> Connection Localhost via UNIX socket
Daevid> UNIX socket /var/lib/mysql/mysql.sock
Daevid> Uptime: 2 hours 2 min 34 sec
Daevid> Threads: 1 Questions: 26 Slow queries: 0 Opens: 10 Flush tables: 1
> Open
Daevid> tables: 3
Daevid> I don't get any compile errors for this module, only this:
Daevid> # make test
Daevid> make[1]: Entering directory `/usr/src/Msql-Mysql-modules-1.2014/Mysql'
Daevid> make[1]: Leaving directory `/usr/src/Msql-Mysql-modules-1.2014/Mysql'
Daevid> make[1]: Entering directory `/usr/src/Msql-Mysql-modules-1.2014/Mysql'
Daevid> PERL_DL_NONLAZY=1 /usr/bin/perl -I.././blib/arch -I.././blib/lib
Daevid> -I/usr/lib/perl5/i386-linux/5.00405 -I/usr/lib/perl5 -e 'use Test::Harness
Daevid> qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
Daevid> t/00base............ok
Daevid> t/10dsnlist.........Can't connect to local MySQL server (2) at t/10dsnlist.t
Daevid> line 45
Hi!
The problem may be that perl isn't using the socket:
/var/lib/mysql/mysql.sock
to connect to MySQL
Try setting:
MYSQL_UNIX_PORT=/var/lib/mysql/mysql.sock
export MYSQL_UNIX_PORT
and run 'make test' again!
Regards,
Monty