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
Hope the code below helps. Also if you're using a new version of java (1.2 or above, I believe) make sure you're using the noopt version of the class files. try { Class.forName("twz1.jdbc.mysql.jdbcMysqlDriver").newInstance(); } catch(Exception e) { this.err