[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
2016-09-03T03:17:51.815890Z 0 [ERROR] Aborting
mysql> select version();
+------------+
| version() |
+------------+
| 5.7.14-log |
+------------+
1 row in set (0.00 sec)
在设置bin log日志的时候,没有设置server_id参数。server-id参数用于在复制中,为主库和备库提供一个独立的ID,以区分主库和备库;开启二进制文件的时候,需要设置这个参数。
[root@mysql bin]# vi /etc/my.cnf
#add
[mysqld]
log-bin=mysql-bin
server-id=1
转自:https://blog.csdn.net/DBDoctor/article/details/52422637?utm_source=blogxgwz2