wildfly registering mysql as a datasource

前端 未结 5 891
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 14:17

I have been trying to configure mysql as a datasource in wildfly. I am not sure what i am missing out, i get an error on startup .

I have the mysql-connector-java-5

5条回答
  •  我在风中等你
    2021-01-14 14:50

    There are three ways using which you can simply create datasource into wildfly

    1. Using admin console
    2. Manually adding into standalone.xml
    3. Creating datasource file that is xml file.

    Go to WildFly directory/standalone/deployments Simplest way to create datasource xml with following content

    
          
            jdbc:mysql://localhost:3306/DB_NAME
            com.mysql.jdbc.Driver
            mysql
    
            
            SELECT 1
    
            
                5
                50
            
    
            
              username
              password
            
    
            
            
            SELECT 1
            
    
            
            300000
            5
            
            
            true
                  
          
        
    

提交回复
热议问题