my.cnf configuration file as follows: my.cnf configuration file is /etc/my.cnf, subject to the actual conditions. my.cnf configuration file take effect permanently. If you want modifications to take effect only temporarily, run the set global expire_logs_days=3 command to make modifications.binlog_expire_logs_seconds to modify the binlog retention period (in seconds) in MySQL 8.0 or later.log_bin = MYSQL_BINbinlog_format = ROWserver_id = 2 // We recommend you set it to an integer above 1. The value here is only an examplebinlog_row_image = FULLexpire_logs_days=3 // Modify the binlog retention period (at least 3 days preferably).
[\\$Mysql_Dir]/bin/mysqladmin -u root -p shutdown[\\$Mysql_Dir]/bin/safe_mysqld &
[\\$Mysql_Dir] is the installation path of the source database. Replace it with the actual path.Feedback