If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > help in connecting to database.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-06, 04:29
batmanreturn batmanreturn is offline
Registered User
 
Join Date: Jun 2006
Posts: 4
help in connecting to database.

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());
}
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On