mysql 主从配置,UUID重复了,配置里server_id是不一样的。。。
because master and slave have equal MySQL server UUIDs
master配置:
[client]
port=3306
default-character-set=utf8
[mysqld]
port = 3306
innodb_buffer_pool_size = 128M
character_set_server=utf8
server_id=488
basedir=D:/software/SalamanderWnmp/mysql
#解压目录
datadir=D:/software/SalamanderWnmp/mysql/data
#解压目录下data目录
max_allowed_packet = 10M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
log-bin=D:/software/SalamanderWnmp/mysql/mysql-bin
slave配置:
[client]
port=3306
default-character-set=utf8
[mysqld]
port=3308
innodb_buffer_pool_size = 128M
character_set_server=utf8
server_id=499
basedir=D:/software/SalamanderWnmp/mysql-slave
#解压目录
datadir=D:/software/SalamanderWnmp/mysql-slave/data
#解压目录下data目录
max_allowed_packet = 10M
table_open_cache = 256
sort_buffer_size = 1M
read_buffer_size = 1M
read_rnd_buffer_size = 4M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
replicate-do-db=jiyin
log-bin=D:/software/SalamanderWnmp/mysql-slave/mysql-relay-bin
log_slave_updates=1
read_only=1
发现了data目录中auto.cnf中生成的UUID是一样的,但是是为什么呢?^_^
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
改成不一样就好了,改完重启一下,你两个实例是复制出来的吧?要不然不会一样的