Bug #72783 mysqlrpladmin:Cannot connect to the slave server. Unclear connection message.
Submitted: 28 May 2014 12:54 Modified: 11 Jun 2014 4:22
Reporter: Shahriyar Rzayev Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Utilities Severity:S1 (Critical)
Version:1.4.3 OS:Linux (CentOS 6.5)
Assigned to: CPU Architecture:Any

[28 May 2014 12:54] Shahriyar Rzayev
Description:
The same problem with mysqlrpladmin as was with:

http://bugs.mysql.com/bug.php?id=72772
http://bugs.mysql.com/bug.php?id=72706

When mistype the password:

[root@linuxsrv3 ~]# mysqlrpladmin --master=root:12345@localhost --discover-slaves-login='remote2':'Pass@123'  health -vvv --format=vertical
# Discovering slaves for master at localhost:3306
Error connecting to a slave as remote2@192.168.1.88: Cannot connect to the slave server.
Error Access denied for user 'remote2'@'192.168.1.77' (using password: YES)

WARNING: There are slaves that had connection errors.
# Checking privileges.
# Attempting to contact localhost ... Success
#
# Replication Topology Health:
*************************       1. row *************************
            host: localhost
            port: 3306
            role: MASTER
           state: UP
       gtid_mode: ON
          health: OK
         version: 5.6.17-log
 master_log_file: mysql-bin.000033
  master_log_pos: 191
       IO_Thread: 
      SQL_Thread: 
     Secs_Behind: 
 Remaining_Delay: 
    IO_Error_Num: 
        IO_Error: 
   SQL_Error_Num: 
       SQL_Error: 
    Trans_Behind: 
1 row.
# ...done.

Unclear connection -> Error Access denied for user 'remote2'@'192.168.1.77' (using password: YES)

How to repeat:
See description.

Suggested fix:
No idea.
[29 May 2014 7:29] MySQL Verification Team
Hello Shahriyar,

Thank you for the bug report.
Verified as described.

Thanks,
Umesh
[29 May 2014 20:41] Chuck Bell
This is not a bug. The behavior is consistent with the mysql client:

$ mysql -uroot -pwrong 
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
[30 May 2014 6:12] Shahriyar Rzayev
As you see i have already provided --master option for master server.
--master=root:12345@localhost
And why it wants to connect to master server again as user remote2? (192.168.1.77)

This username is provided on slaves-login option:

--discover-slaves-login='remote2':'Pass@123'
[11 Jun 2014 4:22] MySQL Verification Team
Per dev's note - [29 May 20:41] Charles Bell
This is not a bug. The behavior is consistent with the mysql client:

Marking this as not a bug.