mysql err錯(cuò)誤提示You need to use --log-bin to make --binlog-form
打開mysql運(yùn)行日志 WIN-*.err
[Warning] You need to use --log-bin to make --binlog-format work.
出現(xiàn)此錯(cuò)誤的原因是 你注釋掉了
/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
前面加個(gè)#就可以了,運(yùn)行無錯(cuò)誤了。
如果有需要可以將#刪除就可以了
把#號去掉。 如果沒這幾項(xiàng), 則復(fù)制進(jìn)去加上就OK
下面是其它網(wǎng)友的補(bǔ)充安裝jira,MYSQL5.1后出現(xiàn)錯(cuò)誤 Transaction level 'READ-COMMITTED' in InnoDB is not safe for binlog mode 'STATEMENT'
一查原來是innodb和binlog不兼容引起的。修改my.ini :
#binlog_format=mixed
把注釋#號去掉,重啟mysql, 就好了 如果無法啟動(dòng) , 會報(bào)
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錯(cuò)誤提示You need to use --log-bin to make --binlog-format work.的文章就介紹到這了,更多相關(guān)mysql log-bin內(nèi)容請搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. 使用SQL語句快速獲取SQL Server數(shù)據(jù)字典3. 超大型Oracle數(shù)據(jù)庫應(yīng)用系統(tǒng)的設(shè)計(jì)方法4. MySQL性能突然下降的原因5. Windows下在DOS用mysql命令行導(dǎo)入.sql文件6. oracle觸發(fā)器介紹7. MySQL創(chuàng)始人發(fā)郵件尋求中國幫助8. 50種方法巧妙優(yōu)化SQL Server數(shù)據(jù)庫9. Oracle災(zāi)難防護(hù)的關(guān)鍵技術(shù)10. 數(shù)據(jù)庫相關(guān)的幾個(gè)技能:ACCESS轉(zhuǎn)SQL
