facebook

Problem connecting to MySQL [closed]

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #227352 Reply

    Alejandro Barrero
    Participant

    I am having a problem connecting to MySQl. I created the driver with the same datata that I am using with Hibernate (same class and same jar) and I am using the same url, but I am getting the error
    “Unable to create connection. Check your URL.”
    With Hibernate, “mysql://localhost/notebook_db” works but not with Eclipse. Neiher does “mysql://localhost”.

    Your help will be greatly appreciated,

    Alejandro Barrero

    #227379 Reply

    Riyad Kalla
    Member

    jdbc:mysql://localhost:3306/notebook_db

    Try that.

    #227390 Reply

    Alejandro Barrero
    Participant

    That works beautifully. Thank you very much.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Problem connecting to MySQL [closed]

You must be logged in to post in the forum log in