Results 1 to 2 of 2
  1. #1
    Crazy Caveman is offline Member
    Join Date
    Aug 2010
    Posts
    3
    Rep Power
    0

    Default No suitable driver found exception error

    Hello what i am trying to do is connect to my database that i made on my friends web server but i keep getting this error:
    No suitable driver found for jdbc:msql://96.30.49.236:2082/felice_test

    Here is my code:
    Java Code:
    import java.sql.*;
    
    
    public class Engine {
    
    	/**
    	 * @param args
    	 */
    	public static void main(String[] args){
    	    try
    	    {
    	      
    	      Class.forName("com.mysql.jdbc.Driver").newInstance(); 
    	      String url = "jdbc:msql://96.30.49.236:2082/felice_test"; 
    	      Connection conn = DriverManager.getConnection(url,"felice_root","root");  
    	    }
    	    catch (Exception e)
    	    {
    	      System.err.println("Got an exception! "); 
    	      System.err.println(e.getMessage()); 
    	    } 
    
    
    	}
    
    }

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,792
    Rep Power
    25

    Default

    Why do you think the URL you show will provide a suitable driver?

Similar Threads

  1. Class not found Exception
    By surendra in forum Java Servlet
    Replies: 8
    Last Post: 06-09-2011, 01:52 PM
  2. Replies: 6
    Last Post: 09-01-2010, 12:29 PM
  3. No suitable driver found
    By geekchick in forum New To Java
    Replies: 2
    Last Post: 08-25-2010, 01:12 AM
  4. Replies: 13
    Last Post: 03-16-2009, 10:37 PM
  5. class not found exception while using IKVM to create exe for c#
    By manjunath k reddy in forum New To Java
    Replies: 0
    Last Post: 02-21-2009, 07:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •