# Lost Percona XtraDB Root Password

**URL:** <https://forums.percona.com/t/lost-percona-xtradb-root-password/18138>\
**Category:** Percona XtraDB Cluster 8.x\
**Created:** [October 21, 2022, 4:02pm UTC](https://forums.percona.com/t/lost-percona-xtradb-root-password/18138 "2022-10-21T16:02:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikejohnhathaway](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@mikejohnhathaway](https://forums.percona.com/u/mikejohnhathaway)\
**Post date:** [October 21, 2022, 4:02pm UTC](https://forums.percona.com/t/lost-percona-xtradb-root-password/18138/1 "2022-10-21T16:02:31Z")

</div>

Hi,

I have lost the root password for my Percona XtraDB 8 cluster, is there a way to recover?

Cheers

Mike

---

<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:** [October 21, 2022, 5:01pm UTC](https://forums.percona.com/t/lost-percona-xtradb-root-password/18138/2 "2022-10-21T17:01:01Z")

</div>

Shut down one of the nodes, add this to the [mysqld] section of my.cnf: `skip-grant-tables`, start the node back up. Immediately log in as root without a password and run `SET PASSWORD = 'mynewpass'`, log out, shutdown mysql, remove the skip, start mysql back up.
