Difficulty connecting Mysql to Spring Boot

I am new to Spring Boot and have been attempting to connect it to my MySql workbench. I started a new Spring Boot project with web, jdbc, jpa, and hibernate, but have been stuck.

There are a number of tutorials on this subject, but they all start by indicating that it's necessary to go into the application.properties file and add a configuration similar to the below:

spring.jpa.hibernate.ddl-auto=update

spring.datasource.url=jdbc:mysql://localhost:3306/mysqltutorial?useSSL=false

spring.datasource.username=root

spring.datasource.password=

spring.datasource.driver-class-name=com.mysql.jdbc.Driver

spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect

However, none of the tutorials I have found discusses how to find the spring.datasource.url or even the username or password.

How can I find...

Read More »

By: StackOverFlow - 6 days ago

Related Posts