My Java Program can't connect to the MySQL server
Yesterday I spent several hours trying to solve this problem. When I try to connect to MySQL server from my Java program I get the CommunicationsException: Communications link failure. I have encountered several questions on Stackoverflow with similar problems but none of the solutions that were provided in the answers worked for me. For instance I have read an answer which advises to replace "localhost" with "127.0.0.1" or with my private IP address in the Driver.getConnection method, but that didn't solve the problem.I have read an answer which suggested that it should be checked whether the
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.