title: Getting a Java Class Cast Extension when attempting to connect to a MySQL Database with NetBeans
body: <p>I'm currently trying to connect a Java application in <code>NetBeans</code> to interact with a <code>MySQL Database</code> and I am getting the following error when trying to connect:</p>
  
  <blockquote>
    <p>Cannot establish a connection to jdbc:mysql://localhost:3306/mysql?zeroDateTimeBehavior=convertToNull using com.mysql.jdbc.Driver (java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.Long)</p>
  </blockquote>
  
  <p>Anyone know why this would be happening or how I could fix it?  As far as I know the JDBC URL I am giving it to make the connection is correct.</p>
  
  <p>To clarify, there is no code in the project that I am attempting to run, I am only attempting to connect to the 'MySql Database'.</p>