AnsweredAssumed Answered

Can we connect Database connector with the Cpanel Mysql

Question asked by rsantosh on May 15, 2017
Latest reply on May 15, 2017 by srkumar035547

I have created account in cpanel  for FTP. 

I am not able to connect database connector  with cpanel .

I have given all the details of Mysql database of cpanel.

When testing on cloud Error(Unable to connect to database; Caused by: Unable to open database connection. 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.; Caused by: 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.; Caused by: Connection refused).

 

 

When testing on Local Machine Error(Unable to connect to database; Caused by: Unable to open database connection. Unable to instantiate driver class com.mysql.jdbc.Driver, please make sure the appropriate jar files are loaded.; Caused by: Unable to instantiate driver class com.mysql.jdbc.Driver, please make sure the appropriate jar files are loaded.; Caused by: com.mysql.jdbc.Driver).

Outcomes