mysql err錯誤提示You need to use --log-bin to make --binlog-format work.
打開mysql運行日志 WIN-*.err
[Warning] You need to use --log-bin to make --binlog-format work.
出現(xiàn)此錯誤的原因是 你注釋掉了
/etc/my.cnf 文件中的
log-bin=mysql-bin ,但是沒有注釋掉binlog_format 這條
解決辦法:
編輯my.cnf文件,將binlog_format 這條注釋掉.
摘要片段:
# Replication Master Server (default)
# binary logging is required for replication
#log-bin=mysql-bin
# binary logging format - mixed recommended
#binlog_format=mixed
前面加個#就可以了,運行無錯誤了。
如果有需要可以將#刪除就可以了
把#號去掉。 如果沒這幾項, 則復制進去加上就OK
下面是其它網(wǎng)友的補充
安裝jira,MYSQL5.1后出現(xiàn)錯誤 Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'
一查原來是innodb和binlog不兼容引起的。修改my.ini :
#binlog_format=mixed
把注釋#號去掉,重啟mysql, 就好了 如果無法啟動 , 會報
You need to use --log-bin to make --binlog-format work.
那就
#log-bin=mysql-bin
#log-slow-queries=slowquery.log
#long_query_time=3
#binlog_format=mixed
到此這篇關(guān)于mysql err錯誤提示You need to use --log-bin to make --binlog-format work.的文章就介紹到這了,更多相關(guān)mysql log-bin內(nèi)容請搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
相關(guān)文章
MySQL結(jié)合使用數(shù)據(jù)庫分析工具SchemaSpy的方法
這篇文章主要介紹了MySQL結(jié)合使用數(shù)據(jù)庫分析工具SchemaSpy的方法,需要的朋友可以參考下2015-06-06
探討:innodb與myisam在存儲上有何特點和區(qū)別
本篇文章是對innodb與myisam在存儲上有何特點和區(qū)別進行了詳細的分析介紹,需要的朋友參考下2013-06-06
MySQL數(shù)據(jù)庫和Redis緩存一致性的更新策略
本文主要介紹了MySQL數(shù)據(jù)庫和Redis緩存一致性的更新策略問題,文中有詳細的代碼示例,有需要的朋友可以參考一下2023-04-04
詳解如何在阿里云服務器安裝Mysql數(shù)據(jù)庫
這篇文章主要介紹了詳解如何在阿里云服務器安裝Mysql數(shù)據(jù)庫,文中通過示例代碼介紹的非常詳細,對大家的學習或者工作具有一定的參考學習價值,需要的朋友們下面隨著小編來一起學習學習吧2020-11-11

