Issue
I am trying to create a java spring application with mysql conenction and I am receiving this error :
Access denied for user 'aurelian'@'localhost' (using password: NO)
Mind you that I have user/passowrd and in my application properties and I my server is on and the password it is correct:
`######## Database Properties #######
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/spring_reddit_clone
spring.datasource.username=aurelian
spring.datasourxce.password=XXXXXXXXXXXXXX
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
spring.jpa.hibernate.ddl-auto=update
spring.datasource.initialize=true
spring.jpa.show-sql=true**strong text**`
Also I am using mysql-connector-java-8.0.25.jar so I do not have any ideeas.
Best Regards,
Aurelian
Solution
Typo alert.
Change datasourxce to datasource
spring.datasource.password=XXXXXXXXXXXXXX
Answered By – Alien
This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0