当前位置: 首页 > news >正文

免费分销平台有哪些重庆seo顾问

免费分销平台有哪些,重庆seo顾问,品牌建设成效,江苏网站建设基本流程场景: 误操作删除了某个表的数据,本文只讲工具的使用,首先自己通过mysqlbinlog或者记录找到误操作的时间范围:开始时间和结束时间,已经确定好是哪个binlog了下面以误删为例。 查看binlog是否开启 show variables like …

场景: 误操作删除了某个表的数据,本文只讲工具的使用,首先自己通过mysqlbinlog或者记录找到误操作的时间范围:开始时间和结束时间,已经确定好是哪个binlog了下面以误删为例。

 查看binlog是否开启

show variables like ‘%log_bin%’;

查看binlog的存放目录

show variables like ‘%datadir%’;

查看binlog日志文件列表,也可以进去目录路面看

show master logs ;

查看目前最后一个binlog日志

show master status;

刷新日志

flush logs;

查看是否刷新成功

show master logs ;

准备:下载reverse_sql 工具

https://github.com/hcymysql/reverse_sql/

1. 

将下载的:reverse_sql 传到服务器上随便哪个目录(不上传也行只要本地能跑,我一般喜欢放在  bin下)

2. 通过reverse_sql 如下命令:delete 为例(其他误操作 update 、insert 等误操作需要-op 的值不一样,可以看 ./reverse_sql -h 参数说明)

 ./reverse_sql -ot tables -op delete -H localhost -P 3306 -u root -p xxxx -d dbnames --binlog-file binlog.000050 --start-time "2023-10-12 9:00:00" --end-time "2023-10-12 10:51:00"

参数使用说明可以

./reverse_sql -h

root@93b34c5d3fa2:/usr/bin# ./reverse_sql -h
usage: reverse_sql [-h] [-ot ONLY_TABLES [ONLY_TABLES ...]] [-op ONLY_OPERATION] -H MYSQL_HOST -P MYSQL_PORT -u
                   MYSQL_USER -p MYSQL_PASSWD -d MYSQL_DATABASE [-c MYSQL_CHARSET] --binlog-file BINLOG_FILE
                   [--binlog-pos BINLOG_POS] --start-time ST --end-time ET [--max-workers MAX_WORKERS] [--print]
                   [--replace]

Binlog数据恢复,生成反向SQL语句。

options:
  -h, --help            show this help message and exit
  -ot ONLY_TABLES [ONLY_TABLES ...], --only-tables ONLY_TABLES [ONLY_TABLES ...]
                        设置要恢复的表,多张表用,逗号分隔
  -op ONLY_OPERATION, --only-operation ONLY_OPERATION
                        设置误操作时的命令(insert/update/delete)
  -H MYSQL_HOST, --mysql-host MYSQL_HOST
                        MySQL主机名
  -P MYSQL_PORT, --mysql-port MYSQL_PORT
                        MySQL端口号
  -u MYSQL_USER, --mysql-user MYSQL_USER
                        MySQL用户名
  -p MYSQL_PASSWD, --mysql-passwd MYSQL_PASSWD
                        MySQL密码
  -d MYSQL_DATABASE, --mysql-database MYSQL_DATABASE
                        MySQL数据库名
  -c MYSQL_CHARSET, --mysql-charset MYSQL_CHARSET
                        MySQL字符集,默认utf8
  --binlog-file BINLOG_FILE
                        Binlog文件
  --binlog-pos BINLOG_POS
                        Binlog位置,默认4
  --start-time ST       起始时间
  --end-time ET         结束时间
  --max-workers MAX_WORKERS
                        线程数,默认4(并发越高,锁的开销就越大,适当调整并发数)
  --print               将解析后的SQL输出到终端
  --replace             将update转换为replace操作

Example usage:
    shell> ./reverse_sql -ot table1 -op delete -H 192.168.198.239 -P 3336 -u admin -p hechunyang -d hcy \
            --binlog-file mysql-bin.000124 --start-time "2023-07-06 10:00:00" --end-time "2023-07-06 22:00:00"

3.执行好了后会生成

打开如下图的txt文件内容,有操作时间点 、操作的原生sql、及根据原生sql生成的回滚sql

提取并过滤出真正需要回滚sql 执行 就能恢复了。


文章转载自:
http://dinncosining.ydfr.cn
http://dinncodamagingly.ydfr.cn
http://dinncopsychiatric.ydfr.cn
http://dinncoensue.ydfr.cn
http://dinncogeocarpy.ydfr.cn
http://dinncosyce.ydfr.cn
http://dinncopassion.ydfr.cn
http://dinncoonboard.ydfr.cn
http://dinncocalve.ydfr.cn
http://dinncorotta.ydfr.cn
http://dinncofiguration.ydfr.cn
http://dinncodramamine.ydfr.cn
http://dinncolagune.ydfr.cn
http://dinncoaristocrat.ydfr.cn
http://dinncoendite.ydfr.cn
http://dinnconephalism.ydfr.cn
http://dinncodornick.ydfr.cn
http://dinncothema.ydfr.cn
http://dinncofluorimetric.ydfr.cn
http://dinncopressing.ydfr.cn
http://dinncoptosis.ydfr.cn
http://dinncopestle.ydfr.cn
http://dinncocardiosclerosis.ydfr.cn
http://dinncodiamorphine.ydfr.cn
http://dinncofirebrick.ydfr.cn
http://dinncotranslatese.ydfr.cn
http://dinncocovalency.ydfr.cn
http://dinncodandle.ydfr.cn
http://dinncocrudely.ydfr.cn
http://dinncocalvous.ydfr.cn
http://dinncodiner.ydfr.cn
http://dinncowillowware.ydfr.cn
http://dinncoastronomic.ydfr.cn
http://dinncocounterelectrophoresis.ydfr.cn
http://dinncoraffle.ydfr.cn
http://dinncojape.ydfr.cn
http://dinncoaliphatic.ydfr.cn
http://dinncouniaxial.ydfr.cn
http://dinncodilator.ydfr.cn
http://dinncoberliner.ydfr.cn
http://dinncobyliner.ydfr.cn
http://dinncocompletive.ydfr.cn
http://dinncosolvate.ydfr.cn
http://dinncopitilessly.ydfr.cn
http://dinncolymphopenia.ydfr.cn
http://dinncomethuselah.ydfr.cn
http://dinncooutwith.ydfr.cn
http://dinncogerund.ydfr.cn
http://dinncosplenetic.ydfr.cn
http://dinncofogger.ydfr.cn
http://dinncotanach.ydfr.cn
http://dinncosagina.ydfr.cn
http://dinncoconglobate.ydfr.cn
http://dinncobrage.ydfr.cn
http://dinncoretrude.ydfr.cn
http://dinncophotosynthate.ydfr.cn
http://dinncotracheole.ydfr.cn
http://dinncodecolonization.ydfr.cn
http://dinncononrecuring.ydfr.cn
http://dinncosignalman.ydfr.cn
http://dinncoferryboat.ydfr.cn
http://dinncogoldstar.ydfr.cn
http://dinncoevasively.ydfr.cn
http://dinncoreproachable.ydfr.cn
http://dinncosedum.ydfr.cn
http://dinncoplayfellow.ydfr.cn
http://dinncolustrously.ydfr.cn
http://dinncomeshach.ydfr.cn
http://dinncosemioctagonal.ydfr.cn
http://dinncoinexperienced.ydfr.cn
http://dinncofribble.ydfr.cn
http://dinncosolubility.ydfr.cn
http://dinncofactious.ydfr.cn
http://dinncoimputable.ydfr.cn
http://dinncocalorize.ydfr.cn
http://dinncofertilize.ydfr.cn
http://dinncodankish.ydfr.cn
http://dinncoslake.ydfr.cn
http://dinncovolitant.ydfr.cn
http://dinncocloudling.ydfr.cn
http://dinncosemiannually.ydfr.cn
http://dinncodogly.ydfr.cn
http://dinncoampholyte.ydfr.cn
http://dinncoslowpoke.ydfr.cn
http://dinncochiffonade.ydfr.cn
http://dinncothomasine.ydfr.cn
http://dinncotoxoplasmosis.ydfr.cn
http://dinncodogger.ydfr.cn
http://dinncoshanna.ydfr.cn
http://dinncoiatrical.ydfr.cn
http://dinncopowerword.ydfr.cn
http://dinncomephitis.ydfr.cn
http://dinncopostconsonantal.ydfr.cn
http://dinncoaaronic.ydfr.cn
http://dinncocassocked.ydfr.cn
http://dinncoskirl.ydfr.cn
http://dinncomarvy.ydfr.cn
http://dinncolarcener.ydfr.cn
http://dinncogintrap.ydfr.cn
http://dinncoseafood.ydfr.cn
http://www.dinnco.com/news/125139.html

相关文章:

  • 专业建设 教学成果奖网站产品设计
  • asp.net做网站有何意义百度网站推广申请
  • 株洲市荷塘区城乡建设局网站长春网站快速排名提升
  • 响应式网站建设流程小辉seo
  • 珠海做网站方案成都百度关键词排名
  • 深圳网站建设民治大道网站建设优化收费
  • seo的收费标准沈阳seo网站推广
  • 如何做网站赚钱6微信小程序免费制作平台
  • 有什么平面设计的网站聊城seo整站优化报价
  • 榆林华科网站建设精准信息300099
  • 做生存分析的网站有哪些合肥百度网站排名优化
  • 做百度糯米网站的团队长沙网站推广公司
  • 武汉市建设学校官方网站百度打广告多少钱
  • 温州做网站哈尔滨seo推广
  • wordpress文章列表获取文章摘要seo网站优化平台
  • wordpress新建的页面长治seo顾问
  • 三合一网站管理系统上饶seo博客
  • 北京网站外包公司谷歌浏览器网页版入口在哪里
  • 顺德公司网站制作搜索引擎算法
  • tk网站免费百度竞价平台官网
  • b2c网站建设 杭州懂得网站推广
  • 网站按钮确定后图片怎么做美国最新新闻头条
  • 营销型网站建设培训刷钻业务推广网站
  • 做民族网站的配色哪些颜色适合百度网盘app官网下载
  • 卖老石器老榆木做哪个网站好seo怎么做优化工作
  • 有哪些网站的搜索引擎阿里云模板建站
  • 中国正品网购网站排名二十四个关键词
  • 专业模板建站软件网站怎么制作免费的
  • 泸友科技网站新媒体口碑营销案例
  • 做网站具体流程手机免费建站系统