# Is there anyway to hide the plain text password in mysql.slave\_master\_info?

**URL:** <https://forums.percona.com/t/is-there-anyway-to-hide-the-plain-text-password-in-mysql-slave-master-info/12849>\
**Category:** Percona Server for MySQL 8.0\
**Created:** [November 3, 2021, 3:18pm UTC](https://forums.percona.com/t/is-there-anyway-to-hide-the-plain-text-password-in-mysql-slave-master-info/12849 "2021-11-03T15:18:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ipcmlr](https://avatars.discourse-cdn.com/v4/letter/i/df705f/32.png) [@ipcmlr](https://forums.percona.com/u/ipcmlr)\
**Post date:** [November 3, 2021, 3:18pm UTC](https://forums.percona.com/t/is-there-anyway-to-hide-the-plain-text-password-in-mysql-slave-master-info/12849/1 "2021-11-03T15:18:29Z")

</div>

Is there anyway to hide the plain text password in mysql.slave\_master\_info?

You can select \* from mysql.slave\_master\_info and it show the password in plain text…

---

<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:** [November 3, 2021, 5:09pm UTC](https://forums.percona.com/t/is-there-anyway-to-hide-the-plain-text-password-in-mysql-slave-master-info/12849/2 "2021-11-03T17:09:27Z")

</div>

Hello @ipcmlr,  
Yes, you can hide the password by including it in your `START REPLICA` command. For example,

```
START REPLICA USER='repUser' PASSWORD='fooPassword';

```

You may need to first `RESET REPLICA ALL` to clear out the data from the table and then re-run your `CHANGE REPLICATION SOURCE TO ...` to set the source hostname/port/position/etc.

Keep in mind that if replication breaks, or needs to be restarted for any reason, you must always provide the UN/PW as shown above. This is tradeoff between flexibility and security.

You could also configure a user with no password and force SSL connections for replication and authenticate using SSL certificates.
