MySQL和Keycloak设置 [英] MySQL and Keycloak setup

查看:98
本文介绍了MySQL和Keycloak设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我想在我的Keycloak服务器中添加mysql数据库.

Hello I am trying to add mysql database in my Keycloak server.

我在/modules/system/layers/base/com/mysql/main下添加了module.xml和mysql-connector-java-5.1.42-bin.jar.

I've added module.xml and mysql-connector-java-5.1.42-bin.jar under /modules/system/layers/base/com/mysql/main.

当我运行添加mysql模块的命令时,./jboss-cli.sh,它会因

When I am running the command to add mysql module, ./jboss-cli.sh, it errors out with

线程"CLI终端连接(不间断)"中的异常java.lang.ArithmeticException:/减零

Exception in thread "CLI Terminal Connection (uninterruptable)" java.lang.ArithmeticException: / by zero

当我尝试启动Keycloak时,也会收到通知,提示我缺少一项服务.

And when i am trying to start Keycloak, I am also notified that there is a missing service.

service jboss.jdbc-driver.mysql(丢失)

service jboss.jdbc-driver.mysql (missing)

请帮助!

推荐答案

Keycloak文档中存在错误.驱动程序应该在

There is an error in the Keycloak documentation. Driver should be in the

modules/system/layers/base/com/mysql/driver/main

文件夹.

完整的有效说明在这里

https://github.com/v-ladynev/keycloak-nodejs-example#keycloak-配置

您还可以使用docker映像进行实验

Also you can use docker images to experiment

https://github.com/v-ladynev/keycloak-nodejs-example#keycloak-docker-image

这篇关于MySQL和Keycloak设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆