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]

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

Java to MySQL connection

2002-03-20 Thread Chris Stewart
I'm trying to make a connection from a java app to a MySQL database I've created on my local PC. How can I tell the app where to look for the existing database? Code I'm working with: Class.forName(sun.jdbc.odbc.JdbcOdbcDriver).newInstance(); Connection con =

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 + / +

Re: Java to MySQL connection

2002-03-20 Thread Bill Easton
. Subject: Java to MySQL connection Date: Wed, 20 Mar 2002 14:42:43 -0500 From: Chris Stewart [EMAIL PROTECTED] To: [EMAIL PROTECTED] I'm trying to make a connection from a java app to a MySQL database I've created on my local PC. How can I tell the app where to look for the existing database