Results 1 to 2 of 2
  1. #1
    Antrim is offline Member
    Join Date
    Feb 2011
    Rep Power

    Default Problems using MySQL database

    Hi, I've searched through the internet for how to fix this problem but haven't gotten anything yet, so any help will be highly appreciated.

    I've been using the latest version of Eclipse+Tomcat 7 in order to learn how to program servlets. As a college project, I need to do the website for an online music store, so I need to work with databases too (for clients, products, etc).

    I've been trying to get MySQL with Eclipse, so I downloaded the J/Connector (last version) from the MySQL website and installed the Data Tools Plataform for Eclipse. I also downloaded some sample databases.
    Then, I started Eclipse and tried to add a database to my workspace. After selecting the MySQL JDBC Driver that I downloaded, and locating one of the sample databases into my workspace folder, I try to connect to the DB from Eclipse. However, when I try to test connectivity it says "Ping failed. The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server."

    I would appreciate any help from anybody who's done this before or has any idea of how to fix it. Also, even though I'm trying to use MySQL (because it's the one I used a couple years ago in another college class), I am open to any other possibility that allows me to work with databases from Eclipse in the simplest way.


  2. #2
    ARDS is offline Member
    Join Date
    Nov 2010
    Rep Power


    I think it is easier to do this in code level instead of doing eclipse. You can use Eclipse for write codes. But doing these things is not a good thing.
    you can find lot of tutorials regarding JDBC.

Similar Threads

  1. How to connect database mysql via Lan
    By ahmed30 in forum JDBC
    Replies: 3
    Last Post: 01-17-2011, 07:36 AM
  2. Jcombobox with mysql database
    By kesariramachandran in forum AWT / Swing
    Replies: 2
    Last Post: 05-18-2010, 10:32 PM
  3. Problems with MySQL Driver
    By islan in forum JDBC
    Replies: 7
    Last Post: 08-06-2009, 05:47 PM
  4. Replies: 2
    Last Post: 02-11-2009, 05:43 AM
  5. database with mysql using the netbeans 6.0
    By kwesiaryee in forum New To Java
    Replies: 2
    Last Post: 05-02-2008, 05:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts