[EMAIL PROTECTED] wrote:

John Drescher wrote:
 could you show me what command line you use to tell it to use another port?
 Thanks!
Sorry. I do not use a nonstandard port. That is most likely the
problem. My first stab at this is you could use an SSH tunnel to map
the default port (for mysql) on the local machine to the nonstandard
port on the remote.

See TCP Port Forwarding in this link:

http://suso.org/docs/shell/ssh.sdf

John

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

That is a good idea, I will try that.
Thanks for your help.
-JPH
------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
------------------------------------------------------------------------

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
I finally found the right combination of options to make this work on a remote machine and nonstandard port for mysql:

Here are the settings and command I used, maybe of some use to someone else.

apparently, mysql client automatically expects to use 3306 if remote host or a local file socket (/var/lib/mysql.sock or similar) to connect. since I cannot specify the port number to the bscan command, I told mysql to default to the port number and host by setting environment variables:

export MYSQL_HOST=10.1.2.5
export MYSQL_TCP_PORT=3309
export MYSQL_UNIX_PORT=3309

Then you still have to tell bscan to use the remote host too:
../sbin/bscan -d 5 -h 10.1.2.5 -u ********** -P ********** -n bacula_brightserv -v -V VTAPE_brightserv_0009 /data/bacula_data/VTAPE/brightserv


Thanks!

-JPH
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to