Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Connecting Eclipse with MySQL(Problems)
Connecting Eclipse with MySQL [message #654026] Sun, 13 February 2011 03:37 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: February 2011
Junior Member
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.

Thanks.
Re: Connecting Eclipse with MySQL [message #654044 is a reply to message #654026] Sun, 13 February 2011 15:42 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.02.12 20:38, the.antrim@gmail.com wrote:
> 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.
> Thanks.

I can offer you a number of short articles on all of these subjects.
Look under especially "Eclipse-oriented", but also other menus/headings
at http://www.javahotchocolate.com/

Hope this helps.
Re: Connecting Eclipse with MySQL [message #654256 is a reply to message #654044] Mon, 14 February 2011 19:02 Go to previous message
No real name is currently offline No real nameFriend
Messages: 2
Registered: February 2011
Junior Member
Thank you so much. Your website has been a huge help for somebody as lost as me, and after following the steps I've gotten Eclipse to read and modify a database I just created with MySQL. I still need to practice much more and there are many other things I need to learn about it, but making everything work was probably the hardest step. Again, thank you very much and God bless you.
Previous Topic:How to run exclipse app on mobile phone
Next Topic:How can i get rid of this?
Goto Forum:
  


Current Time: Fri Apr 19 23:21:10 GMT 2024

Powered by FUDForum. Page generated in 0.07731 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top