mysql - Connect to ipage database with java -


i trying connect mysql database hosted on ipage, code

public void adduser(){     try {         class.forname("com.mysql.jdbc.driver");         connection conn = null;         conn = drivermanager.getconnection("jdbc:mysql://tt.ipagemysql.com","my_user", "password");         conn.close();     } catch (exception e) {         e.printstacktrace();     } } 

but exception

com.mysql.jdbc.exceptions.jdbc4.communicationsexception: communications link failure last packet sent server 0 milliseconds ago. driver has not received packets server. 


Comments

Post a Comment

Popular posts from this blog

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -

apache - setting document root in antoher partition on ubuntu -

python - pip install -U PySide error -