今天第一次嘗試使用和學(xué)習(xí)percona5.7.11的新特性
在設(shè)置完bin_log的時(shí)候無法啟動(dòng)數(shù)據(jù)庫
log-error報(bào)錯(cuò)
2016-04-22T03:17:44.297472Z 0 [ERROR] You have enabled the binary log, but you haven't provided the mandatory server-id. Please refer to the proper server start-up parameters documentation
根據(jù)英文很容易得知是percona5.7.11設(shè)置bin_log后要一定設(shè)置server-id參數(shù),在/etc/my.cnf中加一條server-id=1即可