-h shortcut seems to be not working for xtrabackup

Bug #1665239 reported by Shahriyar Rzayev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona XtraBackup moved to https://jira.percona.com/projects/PXB
Status tracked in 2.4
2.3
Fix Released
Low
Sergei Glushchenko
2.4
Fix Released
Low
Sergei Glushchenko

Bug Description

Hi,

./xtrabackup --version
./xtrabackup version 2.3.6 based on MySQL server 5.6.24 Linux (x86_64) (revision id: 02d8b7a)

[shahriyar.rzaev@qaserver-04 bin]$ ./xtrabackup -h
./xtrabackup: option '-h' requires an argument
[shahriyar.rzaev@qaserver-04 bin]$ ./xtrabackup -hlocalhost
xtrabackup: Error: unknown argument: '-hlocalhost'
[shahriyar.rzaev@qaserver-04 bin]$ ./xtrabackup -h localhost
xtrabackup: Error: unknown argument: 'localhost'

But -u and -p are OK:

[shahriyar.rzaev@qaserver-04 bin]$ ./xtrabackup -uroot -pBaku12345# --backup
170216 06:46:00 version_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql_read_default_group=xtrabackup' as 'root' (using password: YES).
Failed to connect to MySQL server: DBI connect(';mysql_read_default_group=xtrabackup','root',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at - line 1314.
170216 06:46:00 Connecting to MySQL server host: localhost, user: root, password: set, port: not set, socket: not set
Failed to connect to MySQL server: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2).

Tags: qa
summary: - -h shortcut seems to be not working
+ -h shortcut seems to be not working for xtrabackup
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

-h cannot be assigned for --host option because it was always assigned for --datadir in xtrabackup.

Message "./xtrabackup: option '-h' requires an argument" should however be fixed.

Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXB-949

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.