title: keycloak standalone integration with mysql-innodb-cluster
body: <p>Trying to get keycloak to work with mysql-innodb-cluster. I have configured the keycloak standalone.xml as per the documentation.</p>
  <p>This is the datasource</p>
  <pre><code>            &lt;datasource jndi-name=&quot;java:/jboss/datasources/KeycloakDS&quot; pool-name=&quot;KeycloakDS&quot; enabled=&quot;true&quot;&gt;
                  &lt;connection-url&gt;jdbc:mysql://19.57.1.115:6446/keycloak?useSSL=false&amp;amp;characterEncoding=UTF-8&lt;/connection-url&gt;
                  &lt;driver&gt;mysql&lt;/driver&gt;
                  &lt;pool&gt;
                      &lt;min-pool-size&gt;5&lt;/min-pool-size&gt;
                      &lt;max-pool-size&gt;15&lt;/max-pool-size&gt;
                  &lt;/pool&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;key&lt;/user-name&gt;
                      &lt;password&gt;abababab&lt;/password&gt;
                  &lt;/security&gt;
                  &lt;validation&gt;
                      &lt;valid-connection-checker class-name=&quot;org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker&quot;/&gt;
                      &lt;validate-on-match&gt;true&lt;/validate-on-match&gt;
                      &lt;exception-sorter class-name=&quot;org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter&quot;/&gt;
                  &lt;/validation&gt;
              &lt;/datasource&gt;
  </code></pre>
  <p>This is the drivers</p>
  <pre><code>            &lt;drivers&gt;
                  &lt;driver name=&quot;mysql&quot; module=&quot;com.mysql&quot;&gt;
                      &lt;driver-class&gt;com.mysql.cj.jdbc.Driver&lt;/driver-class&gt;
                  &lt;/driver&gt;
                  &lt;driver name=&quot;h2&quot; module=&quot;com.h2database.h2&quot;&gt;
                      &lt;xa-datasource-class&gt;org.h2.jdbcx.JdbcDataSource&lt;/xa-datasource-class&gt;
                  &lt;/driver&gt;
              &lt;/drivers&gt;
  </code></pre>
  <p>I've also added module.xml for packaging mysql jdbc driver (I'm using latest version mysql-connector-java-8.0.21.jar)</p>
  <p>The error I'm getting when I run keycloak is</p>
  <pre><code>10:45:23,155 INFO  [org.keycloak.connections.jpa.updater.liquibase.LiquibaseJpaUpdaterProvider] (ServerService Thread Pool -- 66) Initializing database schema. Using changelog META-INF/jpa-changelog-master.xml
  10:45:24,088 ERROR [org.keycloak.connections.jpa.updater.liquibase.conn.DefaultLiquibaseConnectionProvider] (ServerService Thread Pool -- 66) Change Set META-INF/jpa-changelog- 
  1.0.0.Final.xml::1.0.0.Final-KEYCLOAK-5461::sthorger@redhat.com failed.  Error: Table 'APPLICATION_DEFAULT_ROLES' already exists [Failed SQL: CREATE TABLE keycloak.APPLICATION_DEFAULT_ROLES (APPLICATION_ID VARCHAR(36) NOT NULL, ROLE_ID VARCHAR(36) NOT NULL)]
  10:45:24,414 FATAL [org.keycloak.services] (ServerService Thread Pool -- 66) java.lang.RuntimeException: Failed to update database
  10:45:24,446 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested via an OS signal
  </code></pre>
  <p>Any help in this regards would be very helpful.</p>