views:

112

answers:

3

how to database connectivity between mysql and eclipse java? plz tell me hw it can be done?

+1  A: 

Lots of ways:

And I'm sure there are plenty of other ways to do it as well.

Matt Ball
+1  A: 

You need a JDBC driver for MySQL in your application classpath which then registers automatically with DriverManager.

You can then use the techniques described in http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html except you need to have the connection string (starting with jdbc:...) adapted to your precise scenario. That is described in the documentation for the JDBC driver you choose to use.

Thorbjørn Ravn Andersen
A: 

There are plenty of jdbc tutorials if you want to build your own solution. MYsql has a Using MySQL With Java page that has links to tutorials, presentations, blogs etc. The first tutorial looks like it covers everything from installing the database to accessing it from the java program.

G_A