I was created online mysql database in jelastic.com. and I try to connect the database using my java code but it's not working and no error will be displayed the following code is I used.
connection = DriverManager.getConnection("jdbc:mysql://mysql36157-databasePro.whelastic.net/Raptor","XXXXX","XXXXX");
Statement st=connection.createStatement();
i don't know why it's not working can any one help me to fix this
First, you can try to ping mysql36157-databasePro.whelastic.net
in your command line and see if it works. Then you should try adding port 3306
to your url and make sure it's the correct port.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.