mysql報錯

現象:

131020 10:21:01 [Warning] Statement may not be safe to log in statement format.                                                             Statement: UPDATE `instance` SET `instance_name` = 'Central' WHERE `instance_id`                                                             = '1' LIMIT 1
131020 10:22:01 [Warning] Statement may not be safe to log in statement format.                                                             Statement: UPDATE `instance` SET `instance_name` = 'Central' WHERE `instance_id`                                                             = '1' LIMIT 1

解決方法:

mysql> set global binlog_format=mixed;
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章