DevOps

1 min read
  1. Install the database driver as a module

    1. Create the directory on WildFly home directory:

      C:\Servers\wildfly-18.0.1.Final\wildfly-18.0.1.Final\modules\com\mariadb\main

    2. Copy the database driver: mariadb-java-client-2.4.1 into specified directory

    3. Create the file module.xml in the same directory with the following XML content:

    <module xmlns="urn:jboss:module:1.3" name="com.mariadb">
        <resources>
            <resource-root path="mariadb-java-client-2.4.1.jar"/>
        </resources>
        <dependencies>
            <module name="javax.api"/>
            <module name="javax.transaction.api"/>
        </dependencies>
    </module>
    
    1. Start WildFly in bin directory as standalone.bat for Windows

    2. Access to WildFly web console and go to the following configuration path: Configuration - Subsystems - Datasources and drivers - JDBC drivers

    3. Enter the following information for MariaDB driver:

    Driver name: mariadb

    Driver Module Name: com.mariadb

    Driver Class Name: org.mariadb.jdbc.Driver

Orestis Pantazos

Orestis Pantazos

DevOps Engineer