How do I form my database URL ?
Posted by: James Adams
Date: January 07, 2005 03:51PM

Sorry if this is elementary, I haven't been able to find this info in the MySQL manual or from various Google searches. Basically I have MySQL 4.1.8-nt installed on my Windows XP machine and I need to provide a database URL for Hibernate and I'm not sure of how I specify this URL. Here are the database configuration values which are used in creating the URL (from what I can tell):

host = localhost, or nassau.harborside.local (actual name)
port = 3306
database name = notebook

I have tried the following with no success:

jdbc:mysql:thin:@localhost:3306:notebook
jdbc:mysql:thin://nassau:3306:notebook
jdbc:mysql://localhost/notebook

If someone can direct me to a site which explains how to create a database URL from a particular set of database configuration values then I'd certainly appreciate the help. Thanks in advance...


--James

Options: ReplyQuote


Subject
Written By
Posted
How do I form my database URL ?
January 07, 2005 03:51PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.