Need solution for MySQL Not connected problem
Posted by: Nataraja mani
Date: January 09, 2019 02:54AM

Actually I have trouble with MYSQL database.

I am working in below mentioned working Enviroment.

1.CentOS Linux release 7.6.1810 (Core)

2.Tomcat 7

3.JAVA 1.8.0_191 - (openjdk version)

4.MySQL Databse - Ver 14.14 Distrib 5.6.42

I have developed the one Java Web Application using tomcat and MySQL database.

From Eclipse IDE , I run code MySQL Is connected successfully and It's working Perfectly.

But After creating the war file and I deployed that war file in Tomcat Server ,

MySQL Database Not Connected. I am getting following Exception.

In My Application , I am writing Log file for exception. that Log file shows this Exception.

Kindly provide the solution as soon as possible.

1.0-20160813-CMS:08-Jan-2019 11:33:03 PM : com.mysql.jdbc.CommunicationsException --> DbUtil : getConnection

Options: ReplyQuote

Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.