2 Replies Latest reply: Nov 18, 2007 3:53 AM by 807600 RSS

    Mysql connection through netbeans problem

      Hi All - I am trying to connect to a mysql database using the following:
      Connection con = DriverManager.getConnection("jdbc:mysql://localhost/database?" +
      But am getting an error of: SQLException: No suitable driver found for jdbc:mysql://local...

      I have downloaded MySQL Connector/J and have added it to the netbeans project libraries and still nothing works. Has anyone any idea what I am doing wrong? Thanks