mysql錯誤Error(1133): Can’t find any matching row in the use


 執行插入用戶語句沒有問題,但是執行權限賦值的時候提示: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.

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM