2021-03-24T13:12:46.892715Z 1 [Note] A temporary password is generated for root@localhost: 5*Xtza)rX7b#
# mysql -uroot -p ----用root用户本地登陆mysqld数据库服务器 Enter password: mysql> mysql> ALTER USER 'root'@'localhost' identified by 'Uplooking_123'; ----重置初始化密码xxx Query OK, 0 rows affected (0.00 sec)
flush privileges;
mysql -uroot -pChenghao_123 -e '[SQL语句]' 以非交互的形式运行
stop slave; reset slave all;
关闭临时的二进制日志 set sql_log_bin=0 开启二进制日志 set sql_log_bin=1