I'm try to connect to a MySQL database using Spring Data JPA (in a Spring Boot application) and always the same error:
java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO)
My application.properties looks like:
spring.datasource.url=jdbc:mysql://localhost:3306/demographics
spring.datasource.data-username=root
spring.datasource.data-password=root
spring.jpa.hibernate.ddl-auto=update
I know the url, username and password are good.