RE: Java to MySQL connection

2002-03-21 Thread sean . odonnell
there is odbc support on linux, you can find a link the the myodbc drive for mysql on mysql.com -Original Message- From: Liyju Janardhan [mailto:[EMAIL PROTECTED]] Sent: 21 March 2002 03:30 To: Chris Stewart; [EMAIL PROTECTED] Subject: Re: Java to MySQL connection which Driver your

Re: Java to MySQL connection

2002-03-21 Thread Liyju Janardhan
which Driver your using? which Operating system your using? If your using linux, as far as I know there is now odbc support. You have to downlaod mm.mysql driver. If your are using windows you will have to create a dsn name for the your selected driver. --- Chris Stewart <[EMAIL PROTECTED]> wr

Re: Java to MySQL connection

2002-03-20 Thread Bill Easton
Try these: Class.forName("org.gjt.mm.mysql.Driver"); con = DriverManager.getConnection ("jdbc:mysql://localhost/Testing", , ); Make sure the jar file in the mm.mysql-2.0.11 directory is in your classpath/ mm.mysql does NOT use the odbc driver. > Subject: Java to M

Re: Java to MySQL connection

2002-03-20 Thread Ken Anderson
This is a servlet code example for jdbc using the mm driver. String DB_NAME = "database"; String DB_HOST = "localhost"; String DB_USER = "username"; String DB_PASS = password; String DB_DRIVER = "org.gjt.mm.mysql.Driver"; String DB_CONNECTION = "jdbc:mysql://" + DB_HOST +