I have an app that is connecting to MariaDb.
All is fine if I have this in my application.properties – all in 1 big url-string.
spring.datasource.url = jdbc:mariadb://localhost:3306/mydb?user=myusr&password=mypw
If I change this to separate username/password it fails.
spring.datasource.url = jdbc:mariadb://localhost:3306/mydb
spring.datasource.username=myusr
spring.datasource.password=mypw
Exception-cause:
Caused by: java.sql.SQLInvalidAuthorizationSpecException: (conn=273) Access denied for user 'myusr'@'localhost' (using password: NO)
As far I did search I use the correct attributes.
Any idea how to get it running?