Re[2]: Java Example for connection

2001-04-23 Thread Tommaso Nolli
Sorry, my previous post is wrong... I say that mySQL JDBC doesn't support autocommit! It's wrong it doesnt't support NOT autocommit; you have to use setAutocommit(true); Connection cnn = null; try { Class.forName("org.gjt.mm.mysql.Driver"); cnn =

Re: Java Example for connection

2001-04-23 Thread Tommaso Nolli
Hi, I use this code to connect to a mySQL 3.23.36: Connection cnn = null; try { Class.forName("org.gjt.mm.mysql.Driver"); cnn = DriverManager.getConnection("jdbc:mysql:///", , ); cnn.setAutoCommit(false); // doesn't support autocomm

Java Example for connection

2001-04-22 Thread Siomara Pantarotto
Hello all, I wonder if someone could send me a java code showing how to access a mysql databse. I will appreciate very much, actually my job is counting on that. Thanks in advance Siomara _ Get Your Private, Free E-mail f