I have installed MySQL in my machine which is in LINUX .
I am able to connect to MySQL from command line in my machine .
When i tried to connect MySQL from any other applications like DataStudio,DBVisualizer etc it is throwing the following error
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused
PHP Code:
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555)
at com.mysql.jdbc.Connection.<init>(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at NMFL.zk.e(Unknown Source)
I have disabled the firewall in my machine by stopping the IPTABLES using command
/etc/init.d/iptables stop
Kindly suggest me what to do