You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to execute goal org.flywaydb:flyway-maven-plugin:5.2.4:migrate (default-cli) on project community: org.flywaydb.core.internal.exception.FlywaySqlException:
[ERROR] Unable to obtain connection from database (jdbc:mysql://localhost:3306/community) for user 'root': Communications link failure
在sh窗口,通过 mysql -u root -p 输入123456是可以连接成功的
The text was updated successfully, but these errors were encountered:
看readme文档
3. 运行数据库脚本,创建本地数据库
如果需要使用 MySQL 数据库,运行脚本前修改两处配置
然后我改成了,
src/main/resources/application.properties
spring.datasource.url=jdbc:mysql://localhost:3306/community?useUnicode=true&characterEncoding=utf8
spring.datasource.username=root
spring.datasource.password=123456
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
pom.xml
jdbc:mysql://localhost:3306/community?useUnicode=true&characterEncoding=utf8 root 123456 ```执行
报错:
在sh窗口,通过 mysql -u root -p 输入123456是可以连接成功的
The text was updated successfully, but these errors were encountered: