MySQL/MariaDB DBERROR: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception




Error: 

WARNING: Connect failed: DBERROR: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused

Solution :

Once i've changed the bind address to a particular IP in /etc/my.cnf, this error occurs. I've Changed the localhost entry in /etc/hosts, which Solved this
issue.

0 Comments