在尝试进行部署时,即使使用某些密码和用户,也不允许迁移flyway。有人能帮我吗?遵循下面的日志错误。
2018-12-10 02:07:55.578错误4 --- [main] o.a.tomcat.jdbc.pool.ConnectionPool:无法创建初始 游泳池的连接。 2018-12-10T02:07:55.579896 + 00:00 app [web.1]: 2018-12-10T02:07:55.579898 + 00:00 app [web.1]:java.sql.SQLException: 用户'@'ec2-54-91-197-4.compute-1.amazonaws.com'的访问被拒绝 (使用密码:是)2018-12-10T02:07:55.579899 + 00:00 app [web.1]:在 com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) 〜[mysql-connector-java-8.0.13.jar!/:8.0.13] 2018-12-10T02:07:55.579901 + 00:00 app [web.1]:在 com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) 〜[mysql-connector-java-8.0.13.jar!/:8.0.13] 2018-12-10T02:07:55.579903 + 00:00 app [web.1]:在 com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) 〜[mysql-connector-java-8.0.13.jar!/:8.0.13]
调用init方法失败;嵌套异常为 org.flywaydb.core.internal.exception.FlywaySqlException: 2018-12-10T02:07:55.611900 + 00:00 app [web.1]:无法获取 来自数据库的连接:拒绝用户访问 ''@'ec2-54-91-197-4.compute-1.amazonaws.com'(使用密码:是) 2018-12-10T02:07:55.611902 + 00:00 app [web.1]:
2018-12-10T02:07:55.611904 + 00:00 app [web.1]:SQL状态:28000 2018-12-10T02:07:55.611906 + 00:00 app [web.1]:错误代码:1045 2018-12-10T02:07:55.611908 + 00:00 app [web.1]:消息:访问 拒绝用户``@'ec2-54-91-197-4.compute-1.amazonaws.com''(使用 密码:是)2018-12-10T02:07:55.611909 + 00:00 app [web.1]: