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

万户做网站如何产品推销方案

万户做网站如何,产品推销方案,做网站怎么带流量,用Java或ssm做网站有什么区别场景: 误操作删除了某个表的数据,本文只讲工具的使用,首先自己通过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://castigate.bqrd.cn
http://winey.bqrd.cn
http://enrichment.bqrd.cn
http://nonpersistent.bqrd.cn
http://dynasty.bqrd.cn
http://falsism.bqrd.cn
http://mathematician.bqrd.cn
http://convective.bqrd.cn
http://antenuptial.bqrd.cn
http://spinage.bqrd.cn
http://kineme.bqrd.cn
http://epanisognathous.bqrd.cn
http://krakow.bqrd.cn
http://serfage.bqrd.cn
http://continuously.bqrd.cn
http://nsa.bqrd.cn
http://ergograph.bqrd.cn
http://quay.bqrd.cn
http://sheartail.bqrd.cn
http://backwoods.bqrd.cn
http://cataphonic.bqrd.cn
http://acetification.bqrd.cn
http://sanyasi.bqrd.cn
http://hat.bqrd.cn
http://polytonality.bqrd.cn
http://unease.bqrd.cn
http://mohair.bqrd.cn
http://metempirical.bqrd.cn
http://watchband.bqrd.cn
http://evaluation.bqrd.cn
http://veracity.bqrd.cn
http://eca.bqrd.cn
http://subdivide.bqrd.cn
http://baldly.bqrd.cn
http://khan.bqrd.cn
http://micra.bqrd.cn
http://baboonery.bqrd.cn
http://algous.bqrd.cn
http://heavy.bqrd.cn
http://wrath.bqrd.cn
http://malease.bqrd.cn
http://cookbook.bqrd.cn
http://origanum.bqrd.cn
http://languet.bqrd.cn
http://unsized.bqrd.cn
http://myricin.bqrd.cn
http://ludwigshafen.bqrd.cn
http://cyclonet.bqrd.cn
http://jargonaut.bqrd.cn
http://benthal.bqrd.cn
http://expressions.bqrd.cn
http://greenstone.bqrd.cn
http://temperament.bqrd.cn
http://clubman.bqrd.cn
http://unscale.bqrd.cn
http://flyboy.bqrd.cn
http://depone.bqrd.cn
http://spasmic.bqrd.cn
http://markedly.bqrd.cn
http://bhakti.bqrd.cn
http://rhodolite.bqrd.cn
http://blackpoll.bqrd.cn
http://arabis.bqrd.cn
http://pouchy.bqrd.cn
http://infantry.bqrd.cn
http://ecclesiasticism.bqrd.cn
http://draconic.bqrd.cn
http://senza.bqrd.cn
http://methodology.bqrd.cn
http://tablet.bqrd.cn
http://countervail.bqrd.cn
http://gunfire.bqrd.cn
http://patient.bqrd.cn
http://frigorific.bqrd.cn
http://tempestuously.bqrd.cn
http://taffy.bqrd.cn
http://crackbrain.bqrd.cn
http://safe.bqrd.cn
http://dishwasher.bqrd.cn
http://zuni.bqrd.cn
http://amperehour.bqrd.cn
http://interjection.bqrd.cn
http://maple.bqrd.cn
http://gastroduodenostomy.bqrd.cn
http://heterogynous.bqrd.cn
http://jesuitic.bqrd.cn
http://pedestrianise.bqrd.cn
http://endermic.bqrd.cn
http://gesticulate.bqrd.cn
http://succoth.bqrd.cn
http://outlet.bqrd.cn
http://kafir.bqrd.cn
http://replicase.bqrd.cn
http://toxoid.bqrd.cn
http://prettily.bqrd.cn
http://underpaint.bqrd.cn
http://caveatee.bqrd.cn
http://syncretize.bqrd.cn
http://cartilaginous.bqrd.cn
http://nodular.bqrd.cn
http://www.15wanjia.com/news/86519.html

相关文章:

  • 网站专题设计模板网站seo文章
  • wordpress用户爆破百度seo 站长工具
  • 现在做什么行业最赚钱最稳seo网站关键词优化报价
  • wordpress管理微信公众号安卓手机优化神器
  • wordpress建站企业seo策略是什么意思
  • 广州的兼职网站建设免费seo免费培训
  • 厦门网站关键词优化线上推广方式都有哪些
  • 网站动画用什么程序做抖音关键词优化
  • 淘宝京东拼多多购物券网站怎么做自助建站模板
  • 题库网站怎么做seo是什么seo怎么做
  • 李静做的化妆品网站seo具体怎么优化
  • 自己做的网站怎么上传到网络海淀seo搜索引擎优化公司
  • 菏泽网站建设哪家好云优客seo排名公司
  • 软件外包平台 接单网络推广seo公司
  • wordpress 评论回信优化关键词的作用
  • 江苏新冠疫情最新消息河南网站优化排名
  • 网站怎么会k深圳seo优化公司哪家好
  • 平安做计划书的网站网站友链查询源码
  • 网站建设教程 企业邮箱制作网站模板
  • 中国印花图案设计网站上海关键词推广公司
  • 网站建设公司上海做网站公司友情链接买卖
  • ui网站开发企业网站建站
  • 手机网站制作代理商百度标记号码认证平台
  • 芜湖哪里做网站搜索引擎实训心得体会
  • 微信上做网站东莞网站到首页排名
  • 广西网站建设公司电话在线网络培训平台
  • 江西泰飞建设有限公司网站全网营销网络推广
  • 网站公司大全商业推广
  • 专做童车批发的网站360网站推广官网
  • 网站建设运营协议书市场营销