PDA

View Full Version : Java connecting to Mysql....how?


sushi4664
07-24-2007, 07:51 PM
Is there a nice tutorial any where that explains how to connect and modify a mysql database through a java applet??

ess
07-24-2007, 08:49 PM
Try the following example. The code is quite straight forward

http://www.java2s.com/Code/Java/Database-SQL-JDBC/AppletJDBC.htm


Cheers,
Ess

javabits
07-26-2007, 12:36 AM
You'll need to make sure you download the mysql jdbc driver and to include it in your classpath before following the tutorial.

You can find it here
http://dev.mysql.com/downloads/connector/j/5.0.html

Documentation for the mysql jdbc driver can be found here
http://dev.mysql.com/doc/refman/5.0/en/connector-j.html

Docs look like they include examples.

semper fi...