天堂

  :: :: 博问 :: 闪存 :: :: :: 订阅 订阅 :: 管理 ::

2013年2月20日

摘要: 原文链接:http://www.mysqlperformanceblog.com/2012/03/23/best-kept-mysqldump-secret/Many people use mysqldump –single-transaction to get consistent backup for their Innodb tables without making database read only. In most cases it works, but did you know there are some cases when you can get table entire 阅读全文
posted @ 2013-02-20 14:42 zuoxingyu 阅读(2154) 评论(0) 推荐(0) 编辑

摘要: 前面在一个朋友的项目里面分析慢查询日志的时,看到注释也记录在日志里面,而且注释内容比较巧妙,如/* module_name-function_name*/,在SQL里面嵌入了使用这个SQL的模块和函数名称,这在调查SQL出处的时候非常方便。用别的办法比如全代码搜索,然后一个个看也可以做到。当时对注释是如何记录到日志的没明白怎么做到的,今天看到这篇文章时,才注意到-c这个参数。文档里是这么说明的,默认是--skip-comments,不把注释发送到服务器 -c, --comments Preserve comments. Send comments to the server. Th... 阅读全文
posted @ 2013-02-20 10:51 zuoxingyu 阅读(459) 评论(0) 推荐(0) 编辑