Access denied for user ''@'localhost' (using password: NO)之idea坑~

An error occurred while connection to the remote database idea to start sql:

Sql connection configuration is found to the problem:

spring:
  datasource:
    data-username: root
    data-password: 123456
    url: jdbc:mysql://localhost:3307/jdbc?useSSL=false
    driver-class-name: com.mysql.jdbc.Driver

Read:

spring:
  datasource:
    username: root
    password: 123456
    url: jdbc:mysql://locaohost:3307/jdbc?useSSL=false
    driver-class-name: com.mysql.jdbc.Driver

This is the idea that pit yourself tips:

 

Guess you like

Origin www.cnblogs.com/bobkingblog/p/11070289.html