Baptiste Malguy wrote:
Erik P. Olsen a écrit :


Maybe mysql is listening to another socket?


OK, found the socket. Mysql is apparently listening to
/var/lib/mysql/mysql.sock and bacula tries to open /tmp/mysql.sock.



Ok so, if you didn't already fixed this, take a look at /etc/my.cnf or
/etc/mysq/my.cnf (might depends on your MySQL installation/packages).

Search for the parameter named "socket" in the the section named "client".

Here is the example of a Debian Sarge:

  [client]
  port            = 3306
  socket          = /var/run/mysqld/mysqld.sock

Yes, that is indeed what /etc/my.cnf contains. I went back to the User's Manual to read about the use of sockets in bacula. On page 180 there is a description of "DB socket". It is said that if it is omitted MySQL will use the default socket which by the way is /tmp/mysql.sock. I therefore expected the use of this socket to be correct. However, it is not mysql that will use the default socket, it is bacula!

I therefore inserted "DB socket = /var/lib/mysql/mysql.sock" in the Catalog directive of bacula-dir.conf and - voila - everything is now OK.

--
Regards,
Erik P. Olsen



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to