diff -rupN /home/stoty/Downloads/mysql-connector-java-5.1.27/src/com/mysql/jdbc/MysqlIO.java ./src/com/mysql/jdbc/MysqlIO.java --- /home/stoty/Downloads/mysql-connector-java-5.1.27/src/com/mysql/jdbc/MysqlIO.java 2013-10-23 23:45:44.000000000 +0200 +++ ./src/com/mysql/jdbc/MysqlIO.java 2013-11-12 21:47:29.326744701 +0100 @@ -1742,6 +1742,11 @@ public class MysqlIO { // no challenge so this is a changeUser call plugin = getAuthenticationPlugin(this.defaultAuthenticationPluginProtocolName); checkConfidentiality(plugin); + + //We need to reuse the auth_data sent by the server during the initial handshake + if(seed != null){ + fromServer = new Buffer(StringUtils.getBytes(this.seed)); + } } } else {