On the Master server dump a backup of the database you want to resync
Move compress backup to Slave server
On the Slave server decompress the backup
Get the Master Log Name and Position from the dump, Make a note of the MASTER_LOG_FILE & MASTER_LOG_POS values
Stop mySQL/MariaDB
Put the following option in your my.conf config file (most probably under /etc/my.conf) under the [mysqld] section to disable the slave from auto starting
Start mySQL/MariaDB
Log into mySQL and check the Slave is off
SHOW SLAVE STATUS \G;
exit;
Load backup into Slave server
Log into mySQL and set Master Settings
Stop mySQL/MariaDB
Remove the following option in your my.conf config file (most probably under /etc/my.conf) under the [mysqld] section to enable the slave for auto starting
Start mySQL/MariaDB
Log into mySQL and check the Slave is On. Take Note of the Seconds_Behind_Master . This will decrease as the Slave server catches up with the Master server.
SHOW SLAVE STATUS \G;
exit;