執行插入用戶語句沒有問題,但是執行權限賦值的時候提示:1133 - Can't find any matching row in the user table;
解決辦法:插入新的用戶成功時,需要刷新(flush privileges;)下mysql 權限列表。
當SQL線程停止 重啟無效的時候,需要將1133錯誤跳過一次
stop slave;
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1; # 跳過一個錯誤
start slave;
mysql官方解釋:https://bugs.mysql.com/bug.php?id=55286
there is a problem with GRANT and the replication. The slave uses "skip_name_resolv" and the binlog_format is 'MIXED' on the master. If you grant something to an user with an IP there is no problem. It fails with characters in host.
