JDBC format is:

Code:
jdbc:mysql://hostname:port/database_name
You can use localhost as hostname and 3306 as port number. Replace the Database_name with the name of your database.
For the username and password you can simply add them as a query parameter. The final result would be:

HTML Code:
jdbc:mysql://localhost:3306/database_name?user_name&password=somepassword