Fix UUID Master Slave Mysql 8

If you clone your server, and need to prepare for master slave mysql 8 replication, found error like:

Last_IO_Error: Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; these UUIDs must be different for replication to work.


Just change file at /var/lib/mysql/auto.cnf

[email protected]:/var/lib/mysql$ cat /var/lib/mysql/auto.cnf

You can delete it and restart mysql service, it will generate new random UUID for your server instance



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.