# How to upgrade to xtradb cluster from 5.6 to 8

**URL:** <https://forums.percona.com/t/how-to-upgrade-to-xtradb-cluster-from-5-6-to-8/22395>\
**Category:** Percona XtraDB Cluster 8.x\
**Created:** [May 30, 2023, 3:30pm UTC](https://forums.percona.com/t/how-to-upgrade-to-xtradb-cluster-from-5-6-to-8/22395 "2023-05-30T15:30:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elkhedewy](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@elkhedewy](https://forums.percona.com/u/elkhedewy)\
**Post date:** [May 30, 2023, 3:30pm UTC](https://forums.percona.com/t/how-to-upgrade-to-xtradb-cluster-from-5-6-to-8/22395/1 "2023-05-30T15:30:34Z")

</div>

Hello,

I’ve 3 nodes running xtra db cluster 5.6 on production VMs. And i need to upgrade to xtra db cluster 8.

How could this be done?  
system: CentOS Linux release 7.5.1804 (Core)

[root@ppdb01 ~]# rpm -qa |grep perc  
percona-release-0.1-8.noarch  
percona-xtrabackup-2.3.10-1.el7.x86\_64  
percona-toolkit-3.0.12-1.el7.x86\_64  
[root@ppdb01 ~]# mysql -V  
mysql Ver 14.14 Distrib 5.6.41-84.1, for Linux (x86\_64) using 6.2

---

<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:** [May 31, 2023, 12:34am UTC](https://forums.percona.com/t/how-to-upgrade-to-xtradb-cluster-from-5-6-to-8/22395/2 "2023-05-31T00:34:00Z")

</div>

Hello @elkhedewy,  
Because you are currently on such an old version of PXC, the best solution for you is to create a brand new PXC 8 and import the data. Start with a single PXC 8 node. Bootstrap it. Use mydumper on the 5.6 to dump and then import this into the single PXC8 node. After that is done, start node2, then start node3.

---

<div class="post-metadata">

**Author:** ![elkhedewy](https://avatars.discourse-cdn.com/v4/letter/e/5fc32e/32.png) [@elkhedewy](https://forums.percona.com/u/elkhedewy)\
**Post date:** [May 31, 2023, 9:38am UTC](https://forums.percona.com/t/how-to-upgrade-to-xtradb-cluster-from-5-6-to-8/22395/3 "2023-05-31T09:38:11Z")

</div>

Thanks for your reply.  
what if i upgrade to 5.7 and then another upgrade to 8.  
is that possible?

---

<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:** [May 31, 2023, 3:24pm UTC](https://forums.percona.com/t/how-to-upgrade-to-xtradb-cluster-from-5-6-to-8/22395/4 "2023-05-31T15:24:22Z")

</div>

Yes that is. Shut down all but 1 node of PXC 5.6. Upgrade it to 5.7. Disable all galera config. Start plain mysql. Run mysql\_upgrade. Shut down mysql. Enable galera config. Bootstrap. Then upgrade mysql on node2. start it normally, let it join node1. it will most likely SST. repeat for node3.  
After all 3 nodes are 5.7, repeat the entire process for 8.
