title: Mysql 8.0.11 with Hibernate and C3P0: How do I disable connecting through SSL?
body: <p>I have a Karaf program with the following components:</p>
  
  <ol>
  <li>Karaf 4.0.7;</li>
  <li>Hibernate 4.3.7;</li>
  <li>Mysql JDBC Connector 5.1.27;</li>
  <li>C3P0 0.9.5.</li>
  </ol>
  
  <p>I just set up a new development environment where I'm using Mysql 8.0.11 (released only recently). I already locally upgraded my Mysql Connector to 5.1.46 so it's compatible with Mysql 8, and it mostly works. However, I'm getting some warnings in my Karaf console about SSL:</p>
  
  <blockquote>
    <p>Wed Apr 25 09:28:29 CEST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.</p>
  </blockquote>
  
  <p>I'd like to disable SSL locally, but the recommended suggestion of adding <code>&amp;amp;useSSL=false</code> to the end of the connection string doesn't work. This is my connectionstring:</p>
  
  <pre><code>hibernate.connection.url=jdbc:mysql://localhost:3306/dbname?autoReconnect=true&amp;amp;useUnicode=true&amp;amp;characterEncoding=UTF-8&amp;amp;useSSL=false&amp;amp;requireSSL=false
  </code></pre>
  
  <p>What am I doing wrong?</p>