Bug #57679 mysqlbackup tries to do backup and connect to mysqld while not all args provided
Submitted: 23 Oct 2010 9:47 Modified: 2 Nov 2010 17:57
Reporter: Sveta Smirnova Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Enterprise Backup Severity:S3 (Non-critical)
Version:1.8.0, ibbackup 3.5.2 OS:Any
Assigned to: CPU Architecture:Any

[23 Oct 2010 9:47] Sveta Smirnova
Description:
mysqlbackup returns error if no option specified, but tries to create backup and connect to mysqld anyway

How to repeat:
$$MYSQLBACKUP
mysqlbackup: Starting mysqlbackup with following arguments:
/users/ssmirnova/blade12/src/meb-3.5.next/meb-innobackup-c/mysqlbackup  

mysqlbackup: Error: incorrect number of command line arguments, use  --help for usage
mysqlbackup: Unique backup id generated for the current backup operation is 12878271022938490 

mysqlbackup: Error: Can't connect to MySQL server on '127.0.0.1' (111)
mysqlbackup: Warning: Connection to MySQL Server failed for Backup Logging

Suggested fix:
Exit after " Error: incorrect number of command line arguments, use  --help for usage"
[25 Oct 2010 13:10] Ritheesh Vedire
This was already fixed by Satya as a part of post push fix to WL#5495
See Revno 241 of meb-3.5-next
[25 Oct 2010 13:25] Ritheesh Vedire
In my system,
rith@rith-laptop:~/Work/MySQL/meb-3.5.next/meb-innobackup-c$ ./mysqlbackupmysqlbackup: Error: incorrect number of command line arguments, use  --help for usage
rith@rith-laptop:~/Work/MySQL/meb-3.5.next/meb-innobackup-c$
[25 Oct 2010 13:25] Ritheesh Vedire
rith@rith-laptop:~/Work/MySQL/meb-3.5.next/meb-innobackup-c$ ./mysqlbackup
mysqlbackup: Error: incorrect number of command line arguments, use  --help for usage
rith@rith-laptop:~/Work/MySQL/meb-3.5.next/meb-innobackup-c$
[2 Nov 2010 17:57] Sveta Smirnova
Yes, this can be closed.