---
# System prepended metadata

title: WildFly datasource 設定
tags: [WildFly]

---

---
title: 'WildFly datasource 設定'
tags: WildFly
description: WildFly datasource 設定
---

# WildFly datasource 設定

---

[TOC]

---

## 下載MySQL jar

``` terminal
cd /tmp
wget https://repo1.maven.org/maven2/com/mysql/mysql-connector-j/8.0.32/mysql-connector-j-8.0.32.jar
```

---

## WildFly 設定JDBC Driver


![](https://i.imgur.com/RSoSWB4.png)
![](https://i.imgur.com/zPffuwz.png)


---

## WildFly 設定Datasource

![](https://i.imgur.com/TMtImwZ.png)
![](https://i.imgur.com/IVvHJqX.png)
![](https://i.imgur.com/uwkEoHd.png)
![](https://i.imgur.com/tZ8haPg.png)
![](https://i.imgur.com/3zWsdhS.png)
![](https://i.imgur.com/Du4cw6m.png)
![](https://i.imgur.com/chb2Cty.png)
![](https://i.imgur.com/fcpcGsM.png)
![](https://i.imgur.com/2DTaFMm.png)
![](https://i.imgur.com/TpAnqjM.png)


---


## 參考鏈結

https://www.mastertheboss.com/jbossas/jboss-log/where-are-jboss-logs-located/
https://medium.com/@hasnat.saeed/install-and-configure-mysql-jdbc-driver-on-jboss-wildfly-e751a3be60d3
https://blog.csdn.net/weixin_34167043/article/details/92570359
https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.0.32