Socket issues
Posted: Sun Jan 09, 2011 12:12 pm
I'm using Opensuse 11.3, compiling ZM from source.
My system uses a socket of '/var/run/mysql/mysql.sock'. This leads to some issues since ZM wants to use a default of "/var/lib/mysql/mysql.sock".
OK so no problem I have ensured that there is a soft link from /var/lib/mysql/mysql.sock to /var/run/mysql/mysql.sock. This was not enough, there are some DBI connect calls that have no provision for a socket as a variable.
More errors popped and I went to /usr/lib/perl5/site_perl/5.12.1/ZoneMinder and found there 3 *.pm files that call connect with no socket specified. I put in a specific socket and ran again. Lots of errors went away, but now I have
zmu[8286]: ERR [Can't connect to server: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)]
so there is perhaps another file I need to change to specify the correct socket. Anybody suggest where that file might be?
May I suggest that a variable to specify a socket be added to the todo list, unless there is a good reason so not to do?
My system uses a socket of '/var/run/mysql/mysql.sock'. This leads to some issues since ZM wants to use a default of "/var/lib/mysql/mysql.sock".
OK so no problem I have ensured that there is a soft link from /var/lib/mysql/mysql.sock to /var/run/mysql/mysql.sock. This was not enough, there are some DBI connect calls that have no provision for a socket as a variable.
More errors popped and I went to /usr/lib/perl5/site_perl/5.12.1/ZoneMinder and found there 3 *.pm files that call connect with no socket specified. I put in a specific socket and ran again. Lots of errors went away, but now I have
zmu[8286]: ERR [Can't connect to server: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)]
so there is perhaps another file I need to change to specify the correct socket. Anybody suggest where that file might be?
May I suggest that a variable to specify a socket be added to the todo list, unless there is a good reason so not to do?