But one thing to observe is that it is a connection error – not an authentication error. It is not the MySQL server that refsues connection, because here the client simply never gets in contact with the server. You would experience the same with any client using same connection method and parameters.