Hi. What is the correct way to making a connection to MySQL? I'm using
org.gjt.mm.mysql.Driver

Is it 1) or 2) ?

1) Connection conn =DriverManager.getConnection (dbURL, account, password);
  where dbURL = jdbc:mysql://[hostname][:port]/dbname


2) Connection conn =DriverManager.getConnection (dbURL);
  where dbURL =
jdbc:mysql://[hostname][:port]/dbname?user=user,password=password



===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

  http://java.sun.com/products/jsp/faq.html
  http://www.esperanto.org.nz/jsp/jspfaq.html
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


-------------------------------------------------
Lester June Cabrera
Chief Web Programmer
I-Quest Corporation

Tel: (632) 867 8150 local 302 or 309
Fax: (63 2) 867 8077
E-mail: [EMAIL PROTECTED]

Visit the most comprehensive on-line business travel resource at
http://www.worldroom.com

Successful events start here. Visit http://www.worldroomevents.com .
The one-stop online exchange for event planners and suppliers to the MICE
industry.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to