hi im new to this and i have problem connect to the database. how do i do connect if i have this set of codes here?


try {
conn = DriverManager.getConnection("jdbc:mysql://localhost/+ids+?user=+idsuser+&password+=1d5u5er");
FileInputStream is = new FileInputStream(ks);
keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
keyStore.load(is, kp.toCharArray());
getKeys(alias,keyPass);
} catch (KeyStoreException e) {
System.err.println("Key store exception - " + e);
} catch (CertificateException e) {
System.err.println("Key store exception - " + e);
} catch (NoSuchAlgorithmException e) {
System.err.println("No such algorithm - " + e);
} catch (java.io.IOException e) {
System.err.println("IO exception - " + e);
} catch (SQLException ex) {
System.out.println("SQLException: " + ex.getMessage());
System.err.println("SQLState: " + ex.getSQLState());
System.err.println("VendorError: " + ex.getErrorCode());
}