# XtraDB Cluster install on active Mysql host

**URL:** https://forums.percona.com/t/xtradb-cluster-install-on-active-mysql-host/11461
**Category:** Percona XtraDB Cluster 8.x
**Created:** [July 21, 2021, 2:09pm UTC](https://forums.percona.com/t/xtradb-cluster-install-on-active-mysql-host/11461 "2021-07-21T14:09:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mikem](https://avatars.discourse-cdn.com/v4/letter/m/41988e/32.png) [@Mikem](https://forums.percona.com/u/Mikem)
#### Post date: [July 21, 2021, 2:09pm UTC](https://forums.percona.com/t/xtradb-cluster-install-on-active-mysql-host/11461/1 "2021-07-21T14:09:59Z")

</div>

I have an active Mysql host/database with databases/data. I tried to convert this to an XtraDB Cluster by doing the following:

1. Stop current mysql service.
2. Rename /var/lib/mysql to /var/lib/mysql\_back
3. Install Percona XtraDB Cluster software.
4. Rename new /var/lib/mysql to /var/lib/mysql\_perc
5. Rename /var/lib/mysql\_back to /var/lib/mysql
6. Start mysql service.

Not sure this is the way to go. Should I create a blank XtraDB database config and import any data from my current system? I can restart mysql but the service hangs in ‘activating’ status.

---

<div class="post-metadata">

### Author: ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)
#### Post date: [July 21, 2021, 3:27pm UTC](https://forums.percona.com/t/xtradb-cluster-install-on-active-mysql-host/11461/2 "2021-07-21T15:27:34Z")

</div>

You did not need to do steps 2-5. PXC installs as a drop-in-replacement to standard MySQL.

1. stop mysql
2. install PXC packages
3. configure /etc/my.cnf to add minimum wsrep\_\* parameters
4. systemctl start mysql@bootstrap

You now have a cluster of 1 node. Add more nodes and they will auto-join and auto-sync the data.
