title: Cant connect to my SQL database
body: <p>So I'm having an issue connecting to MySQL with Java.
  Heres my code:</p>
  
  <pre><code>import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.SQLException;
  
  
  public class DBAccess {
      private String Host;
      private String User;
      private String Password;
  
      public DBAccess() throws ClassNotFoundException, SQLException{
      Class.forName("com.mysql.jdbc.Driver");
      Password = "password";
      Host = "jdbc:mysql://localhost/worlddb";
      User = "root";
      @SuppressWarnings("unused")
      Connection connect = DriverManager.getConnection(Host,User,Password);
          System.out.println("Connected!"); 
      }
      public void RetreiveData(){
  
      }
      public void ChangeData(){
      }
  
  }
  </code></pre>
  
  <p>The error that I'm getting is Exception in thread "main" </p>
  
  <pre><code>com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown database 'worlddb'
  </code></pre>
  
  <p><a href="http://postimg.org/image/593stjvjx/" rel="noreferrer">http://postimg.org/image/593stjvjx/</a>
  in mySQL workbench, my connection name is "worlddb"
  hostname is Liquidus(which is the localhost)</p>
  
  <ul>
  <li>socket is MySQL</li>
  <li>Port: 3306</li>
  </ul>
  
  <p>Why is this?</p>