Java: SQL connection
<p>Every time i run this code it shows "error on database". i have been using mysql connector(jdbc).</p>

<pre><code>import java.sql.*;
import javax.swing.JOptionPane;

public class MySQLConnection {

    public static Connection conn;

    public static Connection connectDb() {

        try {
            Class.forName("com.mysq1.jdbc.Driver");
            String host = "jdbc:mysql://localhost:3306/sis_db";
            String user = "root";
            String password = "connect";
            conn = DriverManager.getConnection(host, user, password);
            return conn;
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, "Error on Database Connection");
            System.exit(0);
        }

        return null;

    }
}
</code></pre>