[Bacula-users] bscan and wrong mysql password
Hello. What we have: FreeBSD-8.0 bacula-client-3.0.3 bacula-server-3.0.3 ysql-client-5.1.44 mysql-server-5.1.44 I try to restore catalog records from volume and do: bscan -p hidden -v -r -c /usr/local/etc/bacula-sd.conf /backup/production/server.domain.org/server.domain.org-full-0093 bscan: butil.c:282 Using device: /backup/production/server.domain.org for reading. 20-Jul 09:11 bscan JobId 0: Ready to read from volume server.domain.org-full-0093 on device server.domain.org (/backup/production/server.domain.org). 20-Jul 09:12 bscan: ERROR TERMINATION at bscan.c:305 mysql.c:195 Unable to connect to MySQL server. Database=bacula User=root MySQL connect failed either server not running or your authorization is incorrect. But it is not true: mysql -ubacula -phidden bacula Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 88184 Server version: 5.1.44 FreeBSD port: mysql-server-5.1.44 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql Ctrl-C -- exit! So - why bscan failed authorization? Whats wrong? P.S. I try to set -h localhost and I try to use root mysql auth - not helps. -- Best regards, Proskurin Kirill -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bscan and wrong mysql password
On 7/20/2010 5:24 AM, Proskurin Kirill wrote: Hello. What we have: FreeBSD-8.0 bacula-client-3.0.3 bacula-server-3.0.3 ysql-client-5.1.44 mysql-server-5.1.44 I try to restore catalog records from volume and do: bscan -p hidden -v -r -c /usr/local/etc/bacula-sd.conf /backup/production/server.domain.org/server.domain.org-full-0093 bscan: butil.c:282 Using device: /backup/production/server.domain.org for reading. 20-Jul 09:11 bscan JobId 0: Ready to read from volume server.domain.org-full-0093 on device server.domain.org (/backup/production/server.domain.org). 20-Jul 09:12 bscan: ERROR TERMINATION at bscan.c:305 mysql.c:195 Unable to connect to MySQL server. Database=bacula User=root That is user root MySQL connect failed either server not running or your authorization is incorrect. But it is not true: mysql -ubacula -phidden bacula This is user bacula Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 88184 Server version: 5.1.44 FreeBSD port: mysql-server-5.1.44 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql Ctrl-C -- exit! So - why bscan failed authorization? Whats wrong? P.S. I try to set -h localhost and I try to use root mysql auth - not helps. -- Dan Langille - http://langille.org/ -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bscan and wrong mysql password
On 20/07/10 14:48, Dan Langille wrote: mysql.c:195 Unable to connect to MySQL server. Database=bacula User=root That is user root MySQL connect failed either server not running or your authorization is incorrect. But it is not true: mysql -ubacula -phidden bacula This is user bacula It is a misstype, sorry. Of course I use user bacula, db bacula, right pass and -h localhost. But it is still get auth failed. I check it really many times - I can successfully auth via mysql but can`t via bscan. -- Best regards, Proskurin Kirill -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bscan and wrong mysql password
On 20/07/10 14:59, Proskurin Kirill wrote: On 20/07/10 14:48, Dan Langille wrote: mysql.c:195 Unable to connect to MySQL server. Database=bacula User=root That is user root MySQL connect failed either server not running or your authorization is incorrect. But it is not true: mysql -ubacula -phidden bacula This is user bacula It is a misstype, sorry. Of course I use user bacula, db bacula, right pass and -h localhost. But it is still get auth failed. I check it really many times - I can successfully auth via mysql but can`t via bscan. Here all this again: apollo# bscan -ubacula -phidden -h localhost -v -r -c /usr/local/etc/bacula-sd.conf /backup/production/server.domain.org/server.domain-full-0093 bscan: butil.c:282 Using device: /backup/production/server.domain.org for reading. 20-Jul 11:02 bscan JobId 0: Ready to read from volume server.domain-full-0093 on device server.domain.org (/backup/production/server.domain.org). 20-Jul 11:02 bscan: ERROR TERMINATION at bscan.c:305 mysql.c:195 Unable to connect to MySQL server. Database=bacula User=bacula MySQL connect failed either server not running or your authorization is incorrect. apollo# mysql -ubacula -phidden -h localhost bacula Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 88794 Server version: 5.1.44 FreeBSD port: mysql-server-5.1.44 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql quit Bye -- Best regards, Proskurin Kirill -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bscan and wrong mysql password
On 7/20/2010 7:05 AM, Proskurin Kirill wrote: On 20/07/10 14:59, Proskurin Kirill wrote: On 20/07/10 14:48, Dan Langille wrote: mysql.c:195 Unable to connect to MySQL server. Database=bacula User=root That is user root MySQL connect failed either server not running or your authorization is incorrect. But it is not true: mysql -ubacula -phidden bacula This is user bacula It is a misstype, sorry. Of course I use user bacula, db bacula, right pass and -h localhost. But it is still get auth failed. I check it really many times - I can successfully auth via mysql but can`t via bscan. Here all this again: apollo# bscan -ubacula -phidden -h localhost -v -r -c I think you want -P, not -p. /usr/local/etc/bacula-sd.conf /backup/production/server.domain.org/server.domain-full-0093 bscan: butil.c:282 Using device: /backup/production/server.domain.org for reading. 20-Jul 11:02 bscan JobId 0: Ready to read from volume server.domain-full-0093 on device server.domain.org (/backup/production/server.domain.org). 20-Jul 11:02 bscan: ERROR TERMINATION at bscan.c:305 mysql.c:195 Unable to connect to MySQL server. Database=bacula User=bacula MySQL connect failed either server not running or your authorization is incorrect. apollo# mysql -ubacula -phidden -h localhost bacula Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 88794 Server version: 5.1.44 FreeBSD port: mysql-server-5.1.44 Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql quit Bye -- Dan Langille - http://langille.org/ -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bscan and wrong mysql password
On 20/07/10 15:13, Dan Langille wrote: On 7/20/2010 7:05 AM, Proskurin Kirill wrote: On 20/07/10 14:59, Proskurin Kirill wrote: On 20/07/10 14:48, Dan Langille wrote: mysql.c:195 Unable to connect to MySQL server. Database=bacula User=root That is user root MySQL connect failed either server not running or your authorization is incorrect. But it is not true: mysql -ubacula -phidden bacula This is user bacula It is a misstype, sorry. Of course I use user bacula, db bacula, right pass and -h localhost. But it is still get auth failed. I check it really many times - I can successfully auth via mysql but can`t via bscan. Here all this again: apollo# bscan -ubacula -phidden -h localhost -v -r -c I think you want -P, not -p. Wow - it works! Thank you! In man page it is: -p password Specify database password (default: none) And nothing about a -P -- Best regards, Proskurin Kirill -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] bscan and wrong mysql password
On 7/20/2010 8:11 AM, Proskurin Kirill wrote: On 20/07/10 15:13, Dan Langille wrote: On 7/20/2010 7:05 AM, Proskurin Kirill wrote: On 20/07/10 14:59, Proskurin Kirill wrote: On 20/07/10 14:48, Dan Langille wrote: mysql.c:195 Unable to connect to MySQL server. Database=bacula User=root That is user root MySQL connect failed either server not running or your authorization is incorrect. But it is not true: mysql -ubacula -phidden bacula This is user bacula It is a misstype, sorry. Of course I use user bacula, db bacula, right pass and -h localhost. But it is still get auth failed. I check it really many times - I can successfully auth via mysql but can`t via bscan. Here all this again: apollo# bscan -ubacula -phidden -h localhost -v -r -c I think you want -P, not -p. Wow - it works! Thank you! In man page it is: -p password Specify database password (default: none) I don't know what man page you're looking at, but that's what where I got my information. :) -- Dan Langille - http://langille.org/ -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users