1、逻辑备份
mysqldump -h127.0.0.1 -uroot -p -P3307 --single-transaction --all-databases > mysql.dump
2、二级制日志备份
mysqlbinlog --no-defaults --start-datetime="2015-09-06 16:00:00" --stop-datetime="2015-09-06 16:10:00" /data0/mysql/binlogs/mysql-bin.000004 > mysql.binlog
时间: 2024-12-23 04:11:14