# How to deploy mysql galera

**URL:** <https://forums.suse.com/t/how-to-deploy-mysql-galera/10816>\
**Category:** SUSE Rancher Prime\
**Created:** [June 18, 2018, 10:15pm UTC](https://forums.suse.com/t/how-to-deploy-mysql-galera/10816 "2018-06-18T22:15:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alanxie1129](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@alanxie1129](https://forums.suse.com/u/alanxie1129)\
**Post date:** [June 18, 2018, 10:15pm UTC](https://forums.suse.com/t/how-to-deploy-mysql-galera/10816/1 "2018-06-18T22:15:52Z")

</div>

I have a question,how to use rancher 2.0 deploy mysql or mariadb galera? i want mount the data and my.cnf to local HDD

---

<div class="post-metadata">

**Author:** ![alanxie1129](https://avatars.discourse-cdn.com/v4/letter/a/e36b37/32.png) [@alanxie1129](https://forums.suse.com/u/alanxie1129)\
**Post date:** [June 20, 2018, 7:10pm UTC](https://forums.suse.com/t/how-to-deploy-mysql-galera/10816/2 "2018-06-20T19:10:27Z")

</div>

I have a question,how to use rancher 2.0 deploy mysql or mariadb galera? i want mont the data and my.cnf to local HDD

---

<div class="post-metadata">

**Author:** ![etlweather](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/etlweather/32/419_2.png) [@etlweather](https://forums.suse.com/u/etlweather)\
**Post date:** [June 20, 2018, 7:15pm UTC](https://forums.suse.com/t/how-to-deploy-mysql-galera/10816/3 "2018-06-20T19:15:19Z")

</div>

Short answer, if you are using the user interface: in the `Volumes` section of the deployment screen, add a volume and select `Bind-mount a directory from the node`.

A better way to do this however, is to create a persistent volume object and then claim it. How that all works is a longer answer which right this minute I don’t have time to write…
