spring-boot-oauth2-jwt icon indicating copy to clipboard operation
spring-boot-oauth2-jwt copied to clipboard

Changing the credentials for mysql

Open lucqui opened this issue 7 years ago • 1 comments

Hi, this looks like a great app.

I'm getting java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES).

Where can I change this in your code? Where can I alter the values of the db.* properties in the application.yml? Thanks.

lucqui avatar Nov 04 '17 23:11 lucqui

Thanks.

You can change the DB configuration in the application.yaml (src/main/resources/application.yml).

spring:
  datasource:
    url: jdbc:mysql://${db.host:YOUR_HOST}:${db.port:YOUR_PORT}/${db.name:YOUR_DB_NAME}?useSSL=false
    username: ${db.uid:YOUR_DB_USER}
    password: ${db.pwd:YOUR_DB_PASS}
    driver-class-name: com.mysql.jdbc.Driver

dzinot avatar Nov 05 '17 14:11 dzinot