在MySQL主从复制搭建完成后,在master上创建好新表,插入数据,发现从表并没有插入;
show slave status\G;
查看slave的报错信息:[ERROR] Slave SQL: Column 1 of table 'DB.t_tb' cannot be converted from type 'varchar(180)' to type 'varchar(60)', Internal MariaDB error code: 1677
查看master与slave的表信息,两边都一样,初步估计是master与slave 字符集设置不一致引起;
使用命令:show global variables like '%char%'