title: MySQL connection doesn't work with HikariCP
body: <p>HikariCP version: 2.6.1<br>
  JDK version     : 1.8.0_111<br>
  Database        : MySQL<br>
  Driver version  : 5.1.6<br></p>
  
  <hr>
  
  <p>This is my code:</p>
  
  <pre><code>HikariConfig config = new HikariConfig();
  config.setDataSourceClassName("com.mysql.jdbc.jdbc2.optional.MysqlDataSource");
  config.setJdbcUrl("jdbc:mysql://localhost:3306/mydatabase");
  config.setUsername("root");
  config.setPassword("root");
  config.addDataSourceProperty("cachePrepStmts", "true");
  config.addDataSourceProperty("prepStmtCacheSize", "250");
  config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
  System.out.println("Hikari datasource: " + config.getDataSource());
  
  Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/mydatabase?"
          + "user=root&amp;password=root");
  System.out.println("Conn: " + conn);
  String select = "SELECT * FROM users WHERE email = ? AND enable = 'Y'";
  PreparedStatement ps = conn.prepareStatement(select);
  ps.setString(1, "myemail@gmail.com");
  ResultSet rs = ps.executeQuery();
  System.out.println(rs.next());
  </code></pre>
  
  <p>The line <code>System.out.println( "Hikari datasource: " + config.getDataSource() );</code> returns null and the line <code>System.out.println( rs.next() );</code> returns true.</p>
  
  <p>In other words, Hikari connection is not working for some reason. I also can connect using Wildfly Datasource.</p>
  
  <p>Any idea?</p>