简体   繁体   English

与 MySQL 的连接密钥斗篷

[英]Connection keycloak with MySQL

I was try to doing different connections with keycloak and MySQL, and always i get the next error:我试图用 keycloak 和 MySQL 做不同的连接,但总是出现下一个错误:

Operation ("add") failed - address: ([("subsystem" => "microprofile-metrics-smallrye")]): java.lang.NullPointerException

I read differents articles about this problem but anyone don't give me a concrete answer, I try with mariadb and the problem is the same and once i used the integrate gui that have keycloack on the url: http://127.0.0.1:9990/ but nothing changed, the connection take some minutes and create some of tables but finished with the last error我阅读了关于这个问题的不同文章,但没有人给我一个具体的答案,我尝试使用 mariadb 并且问题是相同的,一旦我使用了在 URL 上具有 keycloack 的集成 gui: http://127.0.0.1: 9990/但没有任何变化,连接需要几分钟并创建一些表,但完成了最后一个错误

In this post https://keycloak.discourse.group/t/wildfly-nullpointerexception/747 , the user says that each time keycloak is deployed, it generates a new random password for the database.在这篇文章https://keycloak.discourse.group/t/wildfly-nullpointerexception/747 中,用户说每次部署 keycloak 时,它都会为数据库生成一个新的随机密码。

Therefore, while the database password remained the same, keycloak always tried to use its own newly generated password to connect to the DB.因此,在数据库密码保持不变的情况下,keycloak 总是尝试使用自己新生成的密码连接到数据库。

That person's solution was to set the DB password explicitly in the keycloak config file (values.yml).那个人的解决方案是在 keycloak 配置文件 (values.yml) 中明确设置数据库密码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM