Skip to content

Instantly share code, notes, and snippets.

@mcupak
Created October 9, 2017 06:22
Show Gist options
  • Select an option

  • Save mcupak/59f7d2dab2baa6d99c3292429c8e5af7 to your computer and use it in GitHub Desktop.

Select an option

Save mcupak/59f7d2dab2baa6d99c3292429c8e5af7 to your computer and use it in GitHub Desktop.
Set up MySQL in WildFly.
[standalone@localhost:9990 /] module add --name=com.mysql\
--resources=mysql-connector-java.jar\
--dependencies=javax.api,javax.transaction.api
[standalone@localhost:9990 /] /subsystem=datasources/jdbc-driver=mysql:\
add(driver-name=mysql,driver-module-name=com.mysql,\
driver-xa-datasource-class-name=com.mysql.jdbc.jdbc2.optional.MysqlXADataSource)
{"outcome" => "success"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment