参照1 需要注意的是,需要将主库的root密码用如下语句修改一下 ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '12345678'