mysql database is not connecting remotely..

Posted June 18, 2014 8.1k views
Current actual abc mysql database is running on B Server, we have build this server because abc database on old A mysql Server is not working so we have build this DB on this new Server B. client is asking they want to run their applications in A server. Now all their applications are in B Now i have take sqldump from server b and imported to A.. i asked them to TEST from A now i got this error We are getting the below error. Can you please check if there is any problem with firewall.
        ... 112 more
Caused by: java.sql.SQLException: Access denied for user 'hqadmin'@'' (using password: YES)
        at com.mysql.jdbc.SQLError.createSQLException(
        at com.mysql.jdbc.SQLError.createSQLException(
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(
        at com.mysql.jdbc.MysqlIO.secureAuth411(
        at com.mysql.jdbc.MysqlIO.doHandshake(
        at com.mysql.jdbc.ConnectionImpl.createNewIO(
        at com.mysql.jdbc.ConnectionImpl.(
        at com.mysql.jdbc.JDBC4Connection.(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        at com.mysql.jdbc.Util.handleNewInstance(
        at com.mysql.jdbc.ConnectionImpl.getInstance(
        at com.mysql.jdbc.NonRegisteringDriver.connect(
        at org.apache.tomcat.jdbc.pool.PooledConnection.connectUsingDriver(
Anybody can help?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer
Remote access of MySQL is disabled by default You can follow this article to enable remote access.