[Koha] still looking for mysql @ localhost

Chris Cormack chris at katipo.co.nz
Fri Jun 2 13:42:52 NZST 2006


On Fri, Jun 02, 2006 at 09:35:52AM +0800, eric salayon said:
> what has koha.conf got to do with this error?
> 
>     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
> DBI->connect(:) failed: Can't
>     connect to local MySQL server through socket
> '/var/lib/mysql/mysql.sock' (2) at
>     /www/koha/intranet/modules/C4/Context.pm line 411
> 
Because /etc/koha.conf is what you should have edited.

The 2nd line of koha.conf contains the hostname
hostname=localhost

And thats what C4::Context uses to create a database handler.

If it cant read the /etc/koha.conf file or you havent changed the hostname
there it will be defaulting to trying to use localhost

Chris

-- 
Chris Cormack                                                     Programmer
027 4500 789                                       Katipo Communications Ltd
chris at katipo.co.nz                                          www.katipo.co.nz


More information about the Koha mailing list