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

idea启动sql连接远程数据库时发生错误:

发现是sql连接配置问题:

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

改成:

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

坑点在于这是idea自己提示的:

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

 

上一篇:大数据技术分享:hive内部常用函数都有哪些?


下一篇:[JavaEE]连接数据库遇到的问题