Jump to content

Subhashinie Withanage

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Subhashinie Withanage

  • Rank
    Newbie
  1. My question is related with a photo/ picture
  2. This progam will be very useful to you........... //Establish a connection to a mSQL database using JDBC. import java.sql.*; class JdbcTest1 { public static void main (String[] args) { try { // Step 1: Load the JDBC driver. Class.forName("com.imaginary.sql.msql.MsqlDriver"); // Step 2: Establish the connection to the database. String url = "jdbc:msql://www.myserver.com:1114/contact_mgr"; Connection conn = DriverManager.getConnection(url,"user1","password"); } catch (Exception e) { System.err.println("Got an exception! "); System.err.println(e.getMessage()); } } }
  3. I'm confused on this topic
×
×
  • Create New...