1

My current Database properties are as follows:

enter image description here

I want my Database to be MySQL. Can someone please guide me how to change the properties so it gets saved in MySQL.

I have installed MySQL on my Mac OSX. The Username is Root12 and password is xxx

2 Answers 2

4

Well, you just need to replace all the properties appropriately:

  • the driverClassName is usually com.mysql.jdbc.Driver
  • the url should be like jdbc:mysql://host:3306/databaseName
  • the username and password you already have
  • dialect depends on ORM you are using, for ex for hibernate here is the list

This is the basic configuration

Sign up to request clarification or add additional context in comments.

Comments

2

this should work:

datasource.driverClassName=com.mysql.jdbc.Driver
dataSource.url=jdbc:mysql://localhost/test

hibernate.dialect=org.hibernate.dialect.MySQL5Dialect

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.