I am newbie, is learning to make the program connect to the mysql database, but there is an error. i want to know how to look for url jdbc: mysql:
public class KoneksiDatabase {
private static Connection koneksi;
public static Connection getKoneksi(){
if (koneksi == null) {
try {
String url = "jdbc:mysql://localhost/universitas";
String user = "root";
String pasword = "kendo";
DriverManager.registerDriver (new com.mysql.jdbc.Driver());
koneksi = DriverManager.getConnection (url, user, pasword);
} catch (SQLException t) {
System.out.println ("Eror Java Database Connection");
}
}
return koneksi;
}