这是我的“application.properties”文件
spring.jpa.open-in-view=true
spring.jpa.hibernate.ddl-auto=update
spring.datasource.url=jdbc:mysql://localhost:3306/abbc
spring.datasource.username=root
spring.datasource.password=
当我在ubuntu操作系统上运行这个项目时,它给出了以下错误。
ERROR 11884 --- [ task-1] com.zaxxer.hikari.pool.HikariPool : HikariPool-3 - Exception during pool initialization.
java.sql.SQLException: Access denied for user 'root'@'localhost'
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.22.jar:8.0.22]
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) ~[mysql-connector-java-8.0.22.jar:8.0.22]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) ~[mysql-connector-java-8.0.22.jar:8.0.22]
我如何解决这个问题?
暂无答案!
目前还没有任何答案,快来回答吧!