Re: How can I connect to MySQL using JDBC

2000-05-14 Thread javor
hi i setup s MySQL server and connected to it a few days ago so i'm not experienced SQLer too :) here is how i connect to the server: Class.forName("org.gjt.mm.mysql.Driver").newInstance(); Connection C = DriverManager.getConnection("jdbc:mysql://localhost/hop?user=root&password=my_pass");

RE: How can I connect to MySQL using JDBC

2000-05-13 Thread Hari O'Connell
er, this.password); } catch(Exception e2) { this.errors.add(new String("Unable to get connection to database: " + e2.toString())); } } > -Original Message- > From: Rakesh Raveendran [mailto:[EMAIL PROTECTED]] > Sent: Saturday, May 13, 2000 11:59 AM >

How can I connect to MySQL using JDBC

2000-05-13 Thread Rakesh Raveendran
Hi, I am using a type 4 driver for connecting to MySQL database.The Class file(driver file) is being detected, but I am not able to connect to the database.There are no exceptions being thrown stating that connection is not being created.Can any body send me some sample code as to how to connec