Keyz23
Keyz23

Reputation: 81

mySQL: Connection with Eclipse

I have a lots of problem with the connection between eclipse EE and mySQL. I need to create a web application so I need a DB. I downloaded mySQL ( and mySQL workbench ).

I go to connect eclipse to DB but I can't do it.

This is the sequence that I do:

enter image description here

enter image description here

enter image description here

enter image description here

enter image description here enter image description here

Please give me some information, I need to solve this . Thanks you guys.

Upvotes: 1

Views: 5534

Answers (1)

hpotter_otter
hpotter_otter

Reputation: 61

So setting up a JDBC connection in Eclipse can be much easier than your approach. You can instead, try this:

  1. Right click on your Java class in the Package Explorer in the Eclipse workspace.
  2. Go down the list that appears until you find Build Path and click Add External Archives.
  3. Find the jar file called mysql-connector-java-version number.jar and open it. This should connect your JDBC to Eclipse!

Hope this helps!

Upvotes: 1

Related Questions