# Percona-Xtradb-Cluster and MySQL version mismatch

**URL:** <https://forums.percona.com/t/percona-xtradb-cluster-and-mysql-version-mismatch/11102>\
**Category:** Percona Server for MySQL 8.0\
**Created:** [June 29, 2021, 8:20am UTC](https://forums.percona.com/t/percona-xtradb-cluster-and-mysql-version-mismatch/11102 "2021-06-29T08:20:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![robingaur](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@robingaur](https://forums.percona.com/u/robingaur)\
**Post date:** [June 29, 2021, 8:20am UTC](https://forums.percona.com/t/percona-xtradb-cluster-and-mysql-version-mismatch/11102/1 "2021-06-29T08:20:34Z")

</div>

Hi,

I have installed `percona-xtradb-cluster` using the following command:

```auto
sudo apt-get install percona-xtradb-cluster=1:8.0.22-13-1.focal

```

But pxc installed the different (latest) version of MySQL.

```auto
mysql Ver 8.0.23-14.1 for Linux on x86_64 (Percona XtraDB Cluster (GPL), Release rel14, Revision 3b9a1d, WSREP version 26.4.3)

```

1. So, may I know why pxc is installing the latest version of MySQL?
2. How can I install MySQL with version=`1:8.0.22-13-1.focal`? (Need this specific version because my whole cluster is on this version)

```auto
sudo apt-get install percona-xtradb-cluster=1:8.0.22-13-1.focal
Reading package lists... Done
Building dependency tree       
Reading state information... Done
percona-xtradb-cluster is already the newest version (1:8.0.22-13-1.focal).
0 upgraded, 0 newly installed, 0 to remove and 277 not upgraded.

```

---

<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:** [June 29, 2021, 1:43pm UTC](https://forums.percona.com/t/percona-xtradb-cluster-and-mysql-version-mismatch/11102/2 "2021-06-29T13:43:14Z")

</div>

@robingaur ,  
Have you verified the actual server version? You can only do that after you start MySQL. Disable the wsrep parameters and start the server to see what is in the logs.

---

<div class="post-metadata">

**Author:** ![hrvojem](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/hrvojem/32/6_2.png) [@hrvojem](https://forums.percona.com/u/hrvojem)\
**Post date:** [June 29, 2021, 2:18pm UTC](https://forums.percona.com/t/percona-xtradb-cluster-and-mysql-version-mismatch/11102/3 "2021-06-29T14:18:48Z")

</div>

Hi, as a current workaround you’ll need to specify the versions of all the percona-xtradb-cluster packages, not just the meta package. So running:

`apt-get install percona-xtradb-cluster=1:8.0.22-13-1.focal percona-xtradb-cluster-client=1:8.0.22-13-1.focal percona-xtradb-cluster-common=1:8.0.22-13-1.focal percona-xtradb-cluster-server=1:8.0.22-13-1.focal -V`

should get you all the packages on the version you wanted.

---

<div class="post-metadata">

**Author:** ![robingaur](https://avatars.discourse-cdn.com/v4/letter/r/e56c9b/32.png) [@robingaur](https://forums.percona.com/u/robingaur)\
**Post date:** [June 30, 2021, 12:51pm UTC](https://forums.percona.com/t/percona-xtradb-cluster-and-mysql-version-mismatch/11102/4 "2021-06-30T12:51:14Z")

</div>

Thanks, @hrvojem.

Closing this post

---

<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 6, 2021, 3:55pm UTC](https://forums.percona.com/t/percona-xtradb-cluster-and-mysql-version-mismatch/11102/5 "2021-07-06T15:55:24Z")

</div>


