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

东营免费网站制作设计网站公司长沙

东营免费网站制作,设计网站公司长沙,合肥seo网站推广外包,网络营销方法的种类binlogMysql Binlog是二进制格式的日志文件#xff0c;用来记录Mysql内部对数据库的改动(只记录对数据的修改操作)#xff0c;主要用于数据库的主从复制以及增量恢复。获取binlog日志列表MariaDB [examples] show master logs;----------------------| Log_name | File_s…binlogMysql Binlog是二进制格式的日志文件用来记录Mysql内部对数据库的改动(只记录对数据的修改操作)主要用于数据库的主从复制以及增量恢复。获取binlog日志列表MariaDB [examples] show master logs;----------------------| Log_name | File_size |----------------------| ON.000001 | 9893 |----------------------可知当前只有一个binlog文件ON.000001MariaDB [examples] show binary logs;----------------------| Log_name | File_size |----------------------| ON.000001 | 9893 |----------------------1 row in set (0.134 sec)查看examples.prefix的表结构MariaDB [examples] show create table prefix \G;*************************** 1. row ***************************Table: prefixCreate Table: CREATE TABLE prefix (a int(10) NOT NULL,b int(10) NOT NULL,c int(10) NOT NULL,KEY I_index (a,b,c)) ENGINEInnoDB DEFAULT CHARSETutf8对全表进行更新操作MariaDB [examples] update prefix set ba101;Query OK, 32 rows affected (0.201 sec)Rows matched: 32 Changed: 32 Warnings: 0可以看到有32条数据发生了更新查看binlog(也可以在日志文件目录通过mysqlbinlog ON.000001命令查看)MariaDB [(none)] show binlog events in ON.000001 \G;.........*************************** 108. row ***************************Log_name: ON.000001Pos: 9893Event_type: GtidServer_id: 1End_log_pos: 9935Info: BEGIN GTID 0-1-48*************************** 109. row ***************************Log_name: ON.000001Pos: 9935Event_type: QueryServer_id: 1End_log_pos: 10031Info: use examples; update prefix set ba101*************************** 110. row ***************************Log_name: ON.000001Pos: 10031Event_type: XidServer_id: 1End_log_pos: 10062Info: COMMIT /* xid883 */有很多条记录本次更新操作增加了这三条数据其中第109是我们显示执行的SQL而第108与109条是事务的开始与结束。关于Xid:Binlog::GTID_EVENT:A global transaction identifier (GTID)开启事务Binlog::QUERY_EVENT:The query event is used to send text querys right the binlog.mysql中createinsertupdatedelete的Event_type均为Query类型初看觉得很奇怪这里只是类型定义而已。Binlog::XID_EVENT:Transaction ID for 2PC, written whenever a COMMIT is expected.提交事务看看官方对各个字段的解释Log_nameThe name of the file that is being listed.PosThe position at which the event occurs.Event_typeAn identifier that describes the event type.Server_idThe server ID of the server on which the event originated.End_log_posThe position at which the next event begins, which is equal to Pos plus the size of the event.InfoMore detailed information about the event type. The format of this information depends on the event type.redo logThe redo log is a disk-based data structure used during crash recovery to correct data written by incomplete transactions关于redo log文件名前缀为ib_logfile, 尝试用mysqlbinlog读取mysqlbinlog ib_logfile1/*!50530 SET SESSION.PSEUDO_SLAVE_MODE1*/;/*!40019 SET session.max_insert_delayed_threads0*/;/*!50003 SET OLD_COMPLETION_TYPECOMPLETION_TYPE,COMPLETION_TYPE0*/;DELIMITER /*!*/;ERROR: File is not a binary log file.google一圈目前尚没发现有可以解析该类文件的工具只能从文档中了解其具体结构。后面有时间研究下源码写个ib_logfile的解析器玩玩参考
http://www.huolong8.cn/news/365735/

相关文章:

  • 南昌做网站要多少钱陕西省房和城乡建设厅网站
  • 朋友让你做网站如何拒绝wordpress首页新闻显示数量
  • 建一个小型的购物网站服务器一年要多少钱包装设计网课答案
  • 安徽网站开发项目人与狗做的网站谁有
  • 个人帮忙做网站吗阿里云虚拟主机购买
  • 旅游网站课程设计华为弹性云服务器创建wordpress
  • 海南做网站找谁福州网站建设索q479185700
  • 网站制作整个的流程是什么为什么不用wordpress
  • 可视化网站后台破解WordPress站点
  • 石家庄建站费用太原营销型网站建设制作
  • 平台网站建设外包wordpress 502
  • 做软件跟做网站哪个难网站虚拟主机空间
  • 怎么制作网站平台网站seo设计方案案例
  • 苏州网站建设店铺装修营销型网站建设的一般过程包括哪些环节
  • 手机主页网站推荐罗湖区seo排名
  • cms网站制作平台的重要性
  • 备案网站名称怎么写个人佛山网站上排名
  • 网站开发技术代码抖音关键词推广
  • 网站增加权重吗网页游戏开发教程
  • 佛山定制软件开发公司西安seo代理计费
  • 兰州大学网页与网站设计成都最好的软件公司
  • 重庆响应式网站建设建立平台网站要多久
  • 西安网上注册公司流程长春百度seo代理
  • 公司网站开发可行性报告专门做头像的网站
  • 点个赞科技 网站制作临沂seo公司稳健火星
  • 搭建一个网站大概需要多少钱哪个网站的ps元素好
  • 网站正在建设中服装设计基础
  • 彩票网站开发多少钱苏州网站定制
  • 兰州网站维护公司广西建设工程造价管理协会网站
  • 服务器租用网站模板网站开发工作标准