报错信息
修改完配置文件启动不起来服务报错
[root@bogon ~]# systemctl restart mariadb
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
解决方案
[root@bogon ~]# cp /usr/share/mysql/my-huge.cnf /etc/my.cnf
cp:是否覆盖"/etc/my.cnf"? y
[root@bogon ~]# systemctl restart mariadb
#########################################################################
报错信息
The slave I/O thread stops because master and slave have equal MySQL server
解决方法:
你的两台ID是一样的
查看一下自己的配置文件是否ID一样了,然后修改成不一样的,就可以了。
mysql> show variables like 'server_id';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| server_id | 1 |
+---------------+-------+
1 row in set (0.01 sec)
欢迎进群讨论:QQ群294668383(有意向可以添加)