MSQL误操作delete之后的数据恢复(windows+phpstudy)

先记录一下,后面有空再来整理
https://blog.csdn.net/weixin_43442452/article/details/125895213
https://blog.csdn.net/weixin_42469936/article/details/127441409

mysqlbinlog.exe 下载 适用8.0版本
https://wwd.lanzoub.com/iO5by091g32h

https://www.cnblogs.com/ianlab/p/16553952.html

newText=replace(oldText,“### DELETE FROM”, “;INSERT INTO”)
newText=replace(newText,“### WHERE”, “SELECT”)
newText=replace(newText,“###”, “”)
newText=replace(newText,“@1=”, “”)
newText=replaceregex(“@[1-9]=”,newText, “,”)
newText=replaceregex(“@[1-9][0-9]=”,newText, “,”)

replaceregex:


image.png

未测试:
https://www.cnblogs.com/binliubiao/p/15226284.html

未解决部分中文乱码的问题,有没有人有解决思路?
mysqlbinlog.exe --no-defaults --base64-output=decode-rows --start-datetime="2022-11-29 11:17:00" --stop-datetime="2022-11-29 11:18:00" -v C:\alfred\phpstudy_pro\Extensions\MySQL8.0.12\data\binlog.000716 > C:\Users\alfred\Desktop\tmp\binlog_2022-11-29.sql

image.png

目前只能用正则把所有中文清空


image.png

你可能感兴趣的:(MSQL误操作delete之后的数据恢复(windows+phpstudy))