Connecting to MySQL server host: localhost, user: (null), password: not set but trying to connect with root

Bug #1655278 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

Testing branch -> https://github.com/percona/percona-xtrabackup/pull/303

If user info specified like, i.e not specified:

[client]
#user = root
#password = msandbox

[mysqld]
#user = sh
#port = 5632

[xtrabackup]
#user=msandbox
#password=msandbox

Running backup command:

sh@sh-ubuntu:/usr/local/xtrabackup/bin$ sudo ./xtrabackup --defaults-file=/home/sh/sandboxes/msb_5_6_32/my.sandbox.cnf --backup --datadir=/home/sh/sandboxes/msb_5_6_32/data/ --target-dir=/home/backup_dir/full/ --no-version-check
170110 13:13:27 Connecting to MySQL server host: localhost, user: (null), password: not set, port: 5632, socket: /tmp/mysql_sandbox5632.sock
Failed to connect to MySQL server: Access denied for user 'root'@'localhost' (using password: NO).

Result -> user is null and password is not set, but it is trying to connect using 'root'.

Tags: qa
Revision history for this message
Sergei Glushchenko (sergei.glushchenko) wrote :

The behaviour is correct and it matches mysql client behavoiur. When user is not set, xtrabackup is trying connect with current system useer. You probably ran xtrabackup as root.

Keeping this report as request to replace "user: (null)" part of the message with "user: not set" message.

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-945

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.