1

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.

6
  • 1
    Welcome to Stack Overflow! Please make sure to complete the tour and read How to Ask before asking a question. Commented Jun 28, 2018 at 8:29
  • Possible duplicate of: stackoverflow.com/questions/23624852/… Commented Jun 28, 2018 at 8:39
  • he uses Hibernate Commented Jun 28, 2018 at 8:41
  • Setting up a JDBC connection in eclipse should be the same, no matter which framework you are going to use in your project. Did you encounter a problem following the guidelines in the other question? Commented Jun 28, 2018 at 8:57
  • My problem is not about driver definition, I can't connect Eclipse to DB because I have a ping error Commented Jun 28, 2018 at 10:51

1 Answer 1

1

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!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.