# JDBC Datawrites to write to mysql

**URL:** <https://community.gatling.io/t/jdbc-datawrites-to-write-to-mysql/5029>\
**Category:** Gatling (Open-Source)\
**Created:** [May 21, 2019, 9:10am UTC](https://community.gatling.io/t/jdbc-datawrites-to-write-to-mysql/5029 "2019-05-21T09:10:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinod\_Kumar\_Jeyaram](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vinod\_Kumar\_Jeyaram](https://community.gatling.io/u/Vinod_Kumar_Jeyaram)\
**Post date:** [May 21, 2019, 9:10am UTC](https://community.gatling.io/t/jdbc-datawrites-to-write-to-mysql/5029/1 "2019-05-21T09:10:15Z")

</div>

Hi all,

I am looking a way to write data using jdbc datawriter to write my test data into mysql.  
I found that jdbc is support as a data writer in gatling.  
Please give me an example on how to use this config.  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [May 21, 2019, 9:24am UTC](https://community.gatling.io/t/jdbc-datawrites-to-write-to-mysql/5029/2 "2019-05-21T09:24:59Z")

</div>

The JDBC datawriter has been dropped for a very long time.

---

<div class="post-metadata">

**Author:** ![Vinod\_Kumar\_Jeyaram](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vinod\_Kumar\_Jeyaram](https://community.gatling.io/u/Vinod_Kumar_Jeyaram)\
**Post date:** [May 21, 2019, 9:39am UTC](https://community.gatling.io/t/jdbc-datawrites-to-write-to-mysql/5029/3 "2019-05-21T09:39:04Z")

</div>

Thank you Stephane  
I did see jdbc as a supported data writer in gatling.conf. Please see below ( bolded)

data {  
#writers = [console, file] # The list of DataWriters to which Gatling write simulation data (currently supported : console, file, graphite, **jdbc** )

Thanks & Regards,  
Vinod kumar J,  
Senior Performance Engineer,  
Trimble Information Technologies.

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [May 21, 2019, 9:41am UTC](https://community.gatling.io/t/jdbc-datawrites-to-write-to-mysql/5029/4 "2019-05-21T09:41:41Z")

</div>

The comment is not up-to-date, fixing.

---

<div class="post-metadata">

**Author:** ![Vinod\_Kumar\_Jeyaram](https://avatars.discourse-cdn.com/v4/letter/v/e36b37/32.png) [@Vinod\_Kumar\_Jeyaram](https://community.gatling.io/u/Vinod_Kumar_Jeyaram)\
**Post date:** [May 21, 2019, 9:44am UTC](https://community.gatling.io/t/jdbc-datawrites-to-write-to-mysql/5029/5 "2019-05-21T09:44:40Z")

</div>

Thank you.
