title: How to connect java using eclipse with MySQL database
body: <p>I got the error </p>
  
  <blockquote>
    <p>Error:java.sql.SQLException: The server time zone value 'Malay
    Peninsula Standard Time' is unrecognized or represents more than one
    time zone. You must configure either the server or JDBC driver (via
    the server timezone configuration property) to use a more specific
    time zone value if you want to utilize time zone support.
    java.lang.NullPointerException</p>
  </blockquote>
  
  <p>I tried changing my computer's time with our local timezone but still the same error.</p>
  
  <p>I tried adding my connection:</p>
  
  <pre><code>"jdbc:mysql://localhost/db?useUnicode=true&amp;amp;useJDBCCompliatnTimezoneShift=true&amp;amp;useLegacyDatetimeCode=false","root",""
  </code></pre>
  
  <p>still no work and i got the error:</p>
  
  <blockquote>
    <p>Error:java.sql.SQLNonTransientConnectionException: Cannot load
    connection class because of underlying exception:
    com.mysql.cj.exceptions.WrongArgumentException: Malformed database
    URL, failed to parse the connection string near
    ';useJDBCCompliatnTimezoneShift=true&amp;useLegacyDatetimeCode=false'.
    java.lang.NullPointerException</p>
  </blockquote>
  
  <p>My connection string is:</p>
  
  <pre><code>Class.forName("com.mysql.cj.jdbc.Driver");
  con = DriverManager.getConnection("jdbc:mysql://localhost:3306/raqs","root","");
  </code></pre>