user184406
user184406

Reputation: 1

How to connect between MySQL and Eclipse Java?

How do I establish database connectivity between MySQL and Eclipse Java?

Upvotes: 0

Views: 4018

Answers (3)

GregA100k
GregA100k

Reputation: 1395

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.

Upvotes: 0

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.

Upvotes: 1

Matt Ball
Matt Ball

Reputation: 359776

Lots of ways:

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

Upvotes: 1

Related Questions