I've written a java program to insert data into a MySQL database hosted on godaddy.com, I'm still having trouble connecting to the database though. Code: Connection connection = null; try { // load the driver Class.forName("com.mysql.jdbc.Driver"); } catch( Exception e ) { // problem loading driver, class not exist? e.printStackTrace(); return; } try { connection = DriverManager.getConnection("jdbc:mysql://mysqladmin2.secureserver.net/277/","LyricsWhoreMain","imanidiot777"); I downloaded the necessary driver for a MySQL connection, I'm not totally sure about what to change the class path to, I figured out how to change it though, can anyone help me get a database connection working?
That helped me with the driver part thanks, now my other problem is that I get a connection timing out every time I try to connect. I have no idea how to fix that.