[Koha] still looking for mysql @ localhost

eric salayon esalayon at gmail.com
Thu Jun 1 11:01:18 NZST 2006


guys,

   gud day!

   i just successfully installed KOHA but mysql is not residing on the
same pc. i'd tweaked some statements in the Install.pm (include -h
$hostname to every mysql and mysqladmin commands) to make it work. but
now, when im trying to search for a book, the system still looks @
localhost for the database. below is the logs:

     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [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
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10]
read_config_file(/etc/koha.conf)
     returned undef at /www/koha/intranet/modules/C4/Context.pm line 229.
     [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
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10] Can't call
method "prepare" on an
     undefined value at /www/koha/opac/cgi-bin/opac-main.pl line 16.
     [Tue May 30 09:33:50 2006] [error] [client 10.0.0.10] Premature
end of script headers:
     opac-main.pl

how should i go about this? thanks in advance

eric


More information about the Koha mailing list