Skip to content

Instantly share code, notes, and snippets.

@developer1011
Created March 13, 2020 00:14
Show Gist options
  • Save developer1011/eaf5376e47ff34508e4fd4f1dc6f0f1c to your computer and use it in GitHub Desktop.
Save developer1011/eaf5376e47ff34508e4fd4f1dc6f0f1c to your computer and use it in GitHub Desktop.

Revisions

  1. developer1011 revised this gist Mar 13, 2020. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions Add mysql driver module to jboss
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    ```
    MacBookPro:keycloak-9.0.0 deus$ ./bin/jboss-cli.sh
    You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
    [disconnected /] connect
    @@ -12,5 +11,4 @@ You are disconnected at the moment. Type 'connect' to connect to the server or '
    [standalone@localhost:9990 /] /subsystem=datasources/jdbc-driver=mysql/:add(driver-module-name=com.mysql.driver,driver-name=mysql,jdbc-compliant=false,driver-class-name=com.mysql.jdbc.Driver)
    {"outcome" => "success"}

    [standalone@localhost:9990 /]
    ```
    [standalone@localhost:9990 /]
  2. developer1011 created this gist Mar 13, 2020.
    16 changes: 16 additions & 0 deletions Add mysql driver module to jboss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    ```
    MacBookPro:keycloak-9.0.0 deus$ ./bin/jboss-cli.sh
    You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
    [disconnected /] connect
    [standalone@localhost:9990 /] module add --name=com.mysql.driver --dependencies=javax.api,javax.transaction.api --resources=/Users/deus/servers/keycloak-4.8.3.Final/modules/system/layers/keycloak/com/mysql/main/mysql-connector-java-8.0.11.jar
    [standalone@localhost:9990 /] :reload
    {
    "outcome" => "success",
    "result" => undefined
    }

    [standalone@localhost:9990 /] /subsystem=datasources/jdbc-driver=mysql/:add(driver-module-name=com.mysql.driver,driver-name=mysql,jdbc-compliant=false,driver-class-name=com.mysql.jdbc.Driver)
    {"outcome" => "success"}

    [standalone@localhost:9990 /]
    ```