title: JDBC Type 4 Driver
body: <p>According to the <a href="http://dev.mysql.com/doc/refman/5.0/en/connector-j.html" rel="nofollow" title="MySQL 5.0 Reference Manual">MySQL 5.0 Reference Manual</a>, the MySQL JDCB Connector/J is a "Type 4" driver. The method I'm using to connect to the JDBC server is...</p>
  
  <pre><code>Class.forName("com.mysql.jdbc.Driver").newInstance();
  </code></pre>
  
  <p>My JDBC simply won't work, and as part of my last resort to find out why this wouldn't work, I think it could be the driver. Could someone tell me if this is the correct way to call the driver for a getConnection()? What I'm really looking for is a different command that should replace "com.mysql.jdbc.Driver" for Type 4 JDBC drivers.</p>
  
  <p>Here's the stack trace that led me to think why this isn't working...</p>
  
  <pre><code>java.sql.SQLException: No driver found for jdbc:mysql://localhost:3306/mysql?user=user_name&amp;password=pass_word
      java.sql.DriverManager.getDriver(libgcj.so.10)
      java.sql.DriverManager.getConnection(libgcj.so.10)
      java.sql.DriverManager.getConnection(libgcj.so.10)
      ... blah blah blah
  </code></pre>