• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem connecting eclipse to mysql database with hibernate

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

The title pretty much explains what my problem is. Details:

When I push the "Test Connection"-button I get "Ping failed!" and this error message:



In the properties under the tab "General" i have these settings:

Database: media
URL: jdbc:mysql://localhost:3306/
User name: root
Password: ******


The username and password is correct (tested in mysql command line) and the database exists (show database;)
Currently using mysql-connector-java-5.1.12.jar and hibernate3.
URL's I have also tried:
jdbc:mysql://localhost:3306/media
jdbc:mysql://localhost/
jdbc:mysql://localhost/media

I was told that MySQL automaticly hosts the localhost connections when installed (I've checked that the service is running), I hope this is correct.

I've been stuck with this for several hours and thinking it is time to ask for some help if any is available=p
Don't hesitate to ask if any more details are needed.

Btw, I'm using Windows 7 (I'm mentioning this cause I've experienced that OS's can be the cause of pretty much every problem out there)

Regards
 
Ole Banole
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got it to work by running the MySQL server instance config wizard again. Was so long since I installed MySQL that I didn't know what options to choose back then x)
 
If you're gonna buy things, buy this thing and I get a fat kickback:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic