Simplify initialization of replication

The users are now created on both the slaves as well as the master. This
allows static binlog coordinates to be used on the slaves and the
replication initialization boils down to a set of SQL queries.
This commit is contained in:
Markus Mäkelä
2017-12-19 10:01:50 +02:00
parent c3fe8a6b55
commit a10b93515e
3 changed files with 36 additions and 60 deletions

View File

@ -30,4 +30,5 @@ DROP USER 'maxskysql'@'localhost';
CREATE USER 'maxskysql'@'localhost' IDENTIFIED BY 'skysql';
GRANT ALL ON *.* TO 'maxskysql'@'localhost' WITH GRANT OPTION;
RESET MASTER;
EOF