Mysql JDBC error in ambari
#/usr/jdk64/jdk1.8.0_112/bin/java -cp
/usr/lib/ambari-agent/DBConnectionVerification.jar:/usr/share/java/mysql-connector-java-5.1.37.jar
org.apache.ambari.server.DBConnectionVerification "jdbc:mysql://
xxxxxxx:3306/ambari" "ambari" "xxxxx" com.mysql.jdbc.Driver
ERROR: Unable to connect to the DB. Please check DB connection properties.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications
link failure
The last packet sent successfully to the server was 0 milliseconds ago. The
driver has not received any packets from the server.
#ambari-server setup --jdbc-db=mysql
--jdbc-driver=/usr/share/java/mysql-connector-java-5.1.37.jar
Using python /usr/bin/python
Setup ambari-server
Copying /usr/share/java/mysql-connector-java-5.1.37.jar to
/var/lib/ambari-server/resources/mysql-connector-java-5.1.37.jar
Creating symlink
/var/lib/ambari-server/resources/mysql-connector-java-5.1.37.jar to
/var/lib/ambari-server/resources/mysql-connector-java.jar
If you are updating existing jdbc driver jar for mysql with
mysql-connector-java-5.1.37.jar. Please remove the old driver jar, from all
hosts. Restarting services that need the driver, will automatically copy
the new jar to the hosts.
JDBC driver was successfully initialized.
Ambari Server 'setup' completed successfully.

