Hi. I followed the documentation and numerous examples to use MySQL as a database instead of the in memory database. Executing the standalone.bat for the first time after the configuration works, but if I stop keycloak and try to run the standalone.bat again file I get errors. I’ve tried setting “migration” to manual, and “intialiseifempty” to false, but I still get errors. My database always has to be empty for it work. I’ve even tried adding the tables manually with the update script that keycloak generates, but keycloak only works if it creates it’s tables. I get errors like this :
18:37:57,271 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool – 48) WFLYCTL0190: Step handler org.jboss.as.security.SecurityDomainAdd$1@ad4cda9 for operation add at address [
(“subsystem” => “security”),
(“security-domain” => “jboss-ejb-policy”).
Please help.