Re: [Bacula-users] mysql query in Run After Job
2010-09-10 04:50:25
Use this:
mysql defaults-file=... extra-defaults-file=... (see reference manual
for mysql)
James Harper píše v Pá 10. 09. 2010 v 15:08 +1000:
> I am trying to run a mysql query in Run After Job to update a catalogue
> record, and it's failing to log in. I suspect that it's because
> bacula-dir is running as bacula but mysql is looking in /root for the
> .my.cnf file that contains the password instead of in /var/lib/bacula
> (~bacula) due to bacula-dir not picking up the full environment of the
> bacula user.
>
> Bacula starts as "/usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u
> bacula -g bacula"
>
> Any suggestions? I'd prefer not to put the password on the command line
> even though this isn't a server that having the password visible via
> 'ps' is going to be an issue (it only runs bacula and nobody logs into
> it).
>
> Thanks
>
> James
>
>
> ------------------------------------------------------------------------------
> Automate Storage Tiering Simply
> Optimize IT performance and efficiency through flexible, powerful,
> automated storage tiering capabilities. View this brief to learn how
> you can reduce costs and improve performance.
> http://p.sf.net/sfu/dell-sfdev2dev
> _______________________________________________
> Bacula-users mailing list
> Bacula-users AT lists.sourceforge DOT net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
------------------------------------------------------------------------------
Automate Storage Tiering Simply
Optimize IT performance and efficiency through flexible, powerful,
automated storage tiering capabilities. View this brief to learn how
you can reduce costs and improve performance.
http://p.sf.net/sfu/dell-sfdev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
|
|