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?

Last edited by shabbir; 17Mar2007 at 08:35.. Reason: Code formatting