-
Download connector jar from mysql
http://dev.mysql.com/downloads/connector/j/
-
Unzip the downloaded file and copy the file mysql-connector-java-*-bin.jar to the new folder
WILDFLY_HOME/modules/system/layers/base/com/mysql/main
- create the file module.xml in the same folder with the following content: