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 ,但是沒(méi)有注釋掉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)行無(wú)錯(cuò)誤了。
如果有需要可以將#刪除就可以了
把#號(hào)去掉。 如果沒(méi)這幾項(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'
一查原來(lái)是innodb和binlog不兼容引起的。修改my.ini :
#binlog_format=mixed
把注釋#號(hào)去掉,重啟mysql, 就好了 如果無(wú)法啟動(dòng) , 會(huì)報(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)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. DB2數(shù)據(jù)庫(kù)更新執(zhí)行計(jì)劃的幾個(gè)常見的方法2. 影響SQL server性能的關(guān)鍵三個(gè)方面 3. SQL Server2000數(shù)據(jù)庫(kù)分離與附加4. SQL Server 2000之日志傳送功能 - 描述5. SQL Server 2005日志文件損壞的處理方法6. IBM DB2 Connect簡(jiǎn)介(1)7. 如何在SQL Server中恢復(fù)數(shù)據(jù)8. Mysql查詢優(yōu)化之IN子查詢優(yōu)化方法詳解9. DB2 9的九大新特性10. MySQL 性能、監(jiān)控與災(zāi)難恢復(fù)
