# replication setup

**URL:** <https://forums.percona.com/t/replication-setup/5838>\
**Category:** Percona XtraBackup\
**Created:** [September 1, 2017, 7:47am UTC](https://forums.percona.com/t/replication-setup/5838 "2017-09-01T07:47:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![crios](https://avatars.discourse-cdn.com/v4/letter/c/f1d935/32.png) [@crios](https://forums.percona.com/u/crios)\
**Post date:** [September 1, 2017, 7:47am UTC](https://forums.percona.com/t/replication-setup/5838/1 "2017-09-01T07:47:09Z")

</div>

Hello,

I followed the steps to start a a new slave replication server according to [url][Percona XtraBackup](https://www.percona.com/doc/percona-xtrabackup/2.1/howtos/setting_up_replication.html%5B/url%5D)  
When the slave is started it says x table does not exist. My question is if the backup has to be restored in the slave server before starting the replication. I don’t see that in the procedure shown so I really don’t know what I am missing.  
Thanks.

---

<div class="post-metadata">

**Author:** ![miguelangelnieto](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@miguelangelnieto](https://forums.percona.com/u/miguelangelnieto)\
**Post date:** [September 5, 2017, 3:07am UTC](https://forums.percona.com/t/replication-setup/5838/2 "2017-09-05T03:07:39Z")

</div>

Hello,

Yes. First you need to restore the backup on the slave server. Then, when mysql is running with all the data, you run the CHANGE MASTER and connect it to the master. If you don’t follow that order, then you are just connecting an empty slave with a master and it will fail. So first, restore the backup.

Regards.
