简体   繁体   中英

Switch MySQL slave to master - BINLOG_FORMAT

I had a mySQL slave db that turned into master once some server migration done. Now, when I do a mySQL restart, the db turnos on with the

BINLOG_FORMAT = STATEMENT

So I am not able to write in the DB.

How can I move my mySQL db to be a full master db?

Thank you.

you need to enable binary log on this server by:

log_bin=1
BINLOG_FORMAT = STATEMENT  / MIXED / ROWS

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM