12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
ADADADADAD
建站问答 时间:2024-12-01 09:28:04
作者:文/会员上传
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
12-09
要回滚到某个时间点,你需要使用MySQL的恢复工具来进行操作。具体的步骤如下:首先,停止MySQL服务。可以使用以下命令来停止MySQL服务:sudo systemctl stop mysql接下来,使用以下命
以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。
要回滚到某个时间点,你需要使用MySQL的恢复工具来进行操作。具体的步骤如下:
sudo systemctl stop mysql
ls -l /var/lib/mysql/
你会看到一系列以binlog开头的文件,记录了所有数据库的更改日志。
mysqlbinlog --no-defaults --base64-output=decode-rows --verbose --start-position=<start_position> <binlog_file> | less
其中,<start_position>
是你想要回滚的时间点之前最接近的日志位置,<binlog_file>
是对应的binlog文件。
sudo mysqlbinlog --start-position=<start_position> <binlog_file> | sudo mysql -u root -p
其中,<start_position>
和<binlog_file>
是你在上一步中找到的binlog文件和位置。
sudo systemctl start mysql
这样,你就成功回滚到了指定的时间点。
11-20
11-19
11-20
11-20
11-20
11-19
11-20
11-20
11-19
11-20
11-19
11-19
11-19
11-19
11-19
11-19