Cant connect to MySQL server from Java application
- by RN
This is on VPS\Centos server. The MySQL server is pre configured.
I am running the Java application on Tomcat
My Java web application is not able to connect to the MySQL server.
I get an error -
"Caused by: java.net.ConnectException: Connection refused"
I suspect this to be a configuration problem rather than a coding problem- hence I have…