title: log4j2 JDBC manager cannot connect to the database
body: <p>I'm trying to configure log4j v2 with mysql, but it returns this error:</p>
  
  <pre><code>2014-08-01 15:35:24,819 ERROR Unable to write to database [jdbcManager{ description=databaseAppender, bufferSize=0, connectionSource=factory{ public static java.sql.Connection it.prisma.presentationlayer.webui.ConnectionFactory.getDatabaseConnection() }, tableName=logs, columns=[ { name=message, layout=%message, literal=null, timestamp=false } ] }] for appender [databaseAppender]. org.apache.logging.log4j.core.appender.AppenderLoggingException: Cannot write logging event or flush buffer; JDBC manager cannot connect to the database.
  
  Caused by: java.sql.SQLException: Failed to obtain connection from factory method.
  
  Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://10.41.1.68:3306/test
  </code></pre>
  
  <p>My configuration is similar to <a href="http://logging.apache.org/log4j/2.x/manual/appenders.html#JDBCAppender" rel="noreferrer">doc</a>, with the only difference of this:</p>
  
  <pre><code>new PoolableConnectionFactory(connectionFactory, pool, null, "SELECT 1", false, false, Connection.TRANSACTION_READ_COMMITTED);
  </code></pre>
  
  <p>I think that my tomcat7 is well configured because I can log with log4j v1.</p>