title: How to choose which JDBC driver to use?
body: <p>I have included the MySQL connector dependency and h2database dependency to my project. I then try to get an H2 JDBC connection, but an exception is thrown instead from what looks like the MySQL JDBC connector.</p>
  
  <pre><code>DriverManager.getConnection("jdbc:h2:mem:test", "sa", "");
  </code></pre>
  
  <p>The exception thrown is along the lines of:</p>
  
  <pre><code>com.mysql.cj.core.exceptions.WrongArgumentException: Connector/J cannot handle a database URL of type 'jdbc:h2:'.
  </code></pre>
  
  <p>How do I access both an H2 database, and a MySQL database?</p>