Could not find target log during relay log initialization

mysql-logo-imageWhile a setting up MariaDB slave I ran in the following issue:
180118 14:14:11 [ERROR] Failed to open the relay log './-relay-bin'
(relay_log_pos 7654336)
071118 16:44:10 [ERROR] Could not find target log during relay log initialization
071118 16:44:10 [ERROR] Failed to initialize the master info structure

To fix this remove the following files in /var/lib/mysql directory:
master.info
*relay-bin.*
relay-log.info
relay-log-index.*

Now restart MySQL/MariaDB with:
systemctl restart mariadb

Want me to do this for you? Drop me a line: itgalaxyzzz {at} gmail [dot] com