I'm getting errors trying to run keycloak/quarkus with MySQL.
When I run the command to start the server :
> kc.bat start-dev
Keycloak connect to the database successfully, but it stops after giving this error :
2022-07-04 11:00:12,758 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler (main) ERROR: Failed to start server in (development) mode
2022-07-04 11:00:12,758 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: Failed to update database 2022-07-04 11:00:12,760 ERROR [org.keycloak.quarkus.runtime.cli.ExecutionExceptionHandler] (main) ERROR: liquibase.exception.MigrationFailedException: Migration failed for change set META-INF/jpa-changelog-1.0.0.Final.xml::1.0.0.Final-KEYCLOAK-5461::sthorger@redhat.com: Reason: liquibase.exception.DatabaseException: La clÚ est trop longue. Longueur maximale: 1000 [Failed SQL: (1071) ALTER TABLE keycloak_db_test.REALM_SOCIAL_CONFIG ADD PRIMARY KEY (REALM_ID, NAME)]
The error message : "The key is too long. Maximum length: 1000 [Failed SQL: (1071) ALTER TABLE keycloak_db_test.REALM_SOCIAL_CONFIG ADD PRIMARY KEY (REALM_ID, NAME)]"
I tried to this with Keycloak versions 18 & 17, and tried it with MySql 5 & MySQL 8 & MariaDB 10 I Also tried to enable innodb_large_prefix in my.ini, but still no go.
OS : Windows
The configuration file keycloak.conf:
db=mysql
db-username=root
db-password=
db-url-host=localhost
db-schema=keycloak_db_test
Any ideas that may help, please ?