在heroku上部署jhipster,远程mysql数据库不起作用

rggaifut  于 2021-07-08  发布在  Java
关注(0)|答案(1)|浏览(461)

我补充说 % 以及 %.eu-west-1.compute.amazonaws.com 在mysql服务器上的manage access主机上:

在运行这个命令之后:

  1. git push heroku master

命令以如下错误结束:

  1. remote: ----------------------------
  2. remote: [INFO] driver: com.mysql.jdbc.Driver
  3. remote: [INFO] url: jdbc:mysql://red.obambu.com:3306/dbName?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=UTC
  4. remote: [INFO] username: username
  5. remote: [INFO] password:*****
  6. remote: [INFO] use empty password: false
  7. remote: [INFO] properties file: null
  8. remote: [INFO] properties file will override? false
  9. remote: [INFO] prompt on non-local database? false
  10. remote: [INFO] clear checksums? false
  11. remote: [INFO] changeLogDirectory: null
  12. remote: [INFO] changeLogFile: src/main/resources/config/liquibase/master.xml
  13. remote: [INFO] context(s): null
  14. remote: [INFO] label(s): null
  15. remote: [INFO] number of changes to apply: 0
  16. remote: [INFO] drop first? false
  17. remote: [INFO] ------------------------------------------------------------------------
  18. remote: Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
  19. remote: [INFO] ------------------------------------------------------------------------
  20. remote: [INFO] BUILD FAILURE
  21. remote: [INFO] ------------------------------------------------------------------------
  22. remote: [INFO] Total time: 14.608 s
  23. remote: [INFO] Finished at: 2020-08-21T14:36:52Z
  24. remote: [INFO] ------------------------------------------------------------------------
  25. remote: [ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.9.0:update (default-cli) on project test-aoo:
  26. remote: [ERROR] Error setting up or running Liquibase:
  27. remote: [ERROR] liquibase.exception.DatabaseException: java.sql.SQLException: Access denied for user 'username'@'ec2-11-111-111-11.eu-west-1.compute.amazonaws.com' (using password: YES)
  28. remote: [ERROR] -> [Help 1]
  29. remote: [ERROR]
  30. remote: [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  31. remote: [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  32. remote: [ERROR]
  33. remote: [ERROR] For more information about the errors and possible solutions, please read the following articles:
  34. remote: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  35. remote: Waiting for release... failed.
  36. To https://git.heroku.com/quiet-fjord-74508.git
  37. 34d00e5..3ad885c master -> master

n、 b:我的db密码是这样的: test@@123$$* 有人帮忙吗?

gev0vcfq

gev0vcfq1#

您应该从密码中删除@,或者用url中的%40替换它,以免与数据库url中的“@”混淆。例子:
之前:

  1. jdbc:mysql://username:pass@word@localhost:3306/dbname

之后:

  1. jdbc:mysql://username:pass%40word@localhost:3306/dbname

相关问题