2023-10-17 mysql-配置主从-记录

摘要:

2023-10-17 mysql-配置主从-记录

参考:

mysql配置主从_mysql主从配置_Tyler唐的博客-CSDN博客

master:

环境:

  1. 192.168.74.128
  2. mysql8

/etc/my.cnf.d/mysql-server.cnf

#
# This group are read by MySQL server.
# Use it for options that only the server (but not clients) should see
#
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/en/server-configuration-defaults.html

# Settings user and group are ignored when systemd is used.
# If you need to run mysqld under a different user or group,
# customize your systemd unit file for mysqld according to the
# instructions in http://fedoraproject.org/wiki/Systemd

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
lo

你可能感兴趣的:(mysql,mysql,数据库,主从)