开启log-bin常见问题

(1).2017-06-22T17:18:17.664021Z 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

解决方法:你在[mysqld]下,配置一个 server-id = 1 然后重启一下!

(2)。mysqld: File '/opt/Data/MySQL-bin.index' not found (Errcode: 2 - No such file or directory)

解决方法:chown -R mysql:mysql /opt/Data/

(3)。mysqld: File '/opt/Data/MySQL-bin.index' not found (Errcode: 13 - Permission denied)

解决方法:setenforce 0

你可能感兴趣的:(开启log-bin常见问题)