Dbahacker - dbahacker.com
General Information:
Latest News:
MySQL复制: 5.1.48指向5.5.18后出现的错误 10 Jan 2013 | 12:27 pm
一个数据库,老主库 A (5.1.48) 老主库B (5.1.48) 新主库C (5.5.18) 当把B指向C ,start slave,出现复制错误 Error ‘Character set ‘#45′ is not a compiled character set and is not specified in the ‘/u01/mysql/share/mysql/charsets/In...
MySQL语法: group by的默认顺序 8 Jan 2013 | 03:36 pm
飞影 17:31:25select * from (select * from ….. order by a desc, b desc, c desc) group by a desc 哥,像我上面那个语句, 子select里面对a,b,c进行了ordery排序外面的根据aa进行了group byaa重复的数据里面,a和b是相同的,就c不同这个sql会打乱先a和b的orderby顺序结果吗?? 一...
MySQL性能:一个非典型的MySQL性能问题 8 Jan 2013 | 03:17 pm
今天线上某核心数据库发生一起非典型的数据库性能问题 数据库相关参数如下 Var : port[3306] read_only[OFF] version[5.5.18-log] binlog_format[ROW] max_binlog_cache_size[2G] max_binlog_size[500M] max_connect_errors[50000] max_connections[210...
Have a on-site talk with InnoDB Team 5 Nov 2012 | 06:16 pm
Today , the InnoDB team takes a visit to Alibaba Group. Alibaba Group has serval sub company . For example , Alipay.com ,Taobao.com and Tmall.com, these company have a huge MySQL/InnoDB Database Cl...
MySQL 5.5 Reset Slave 8 Aug 2012 | 08:34 pm
Before 2012, we also deployed MySQL 5.1.48 +InnoDB Plugin 1.0.9 to onlie application. Now in 2012, we begin to use MySQL 5.5 . There is different between 5.1 and 5.5 in reseting slave . In MySQL 5.1...
从多个binlog找到某条记录的修改历史 20 Jun 2012 | 10:56 am
需要从binlog里面找一条6月15创建的记录的修改历史,从6月15日到6月20日,一共有几十个mysql 的binlog,如果是人工操作,需要操作几十次,我们可以用shell来加快处理的速度 来到mysqlbinlog的目录 /u01/mysql/log,先列出最近5天被访问过的binlog文件列表 $find . -atime -5 -print | grep mysql-bin.00 | x...
从多个binlog找到某条记录的修改历史 20 Jun 2012 | 10:56 am
需要从binlog里面找一条6月15创建的记录的修改历史,从6月15日到6月20日,一共有几十个mysql 的binlog,如果是人工操作,需要操作几十次,我们可以用shell来加快处理的速度 来到mysqlbinlog的目录 /u01/mysql/log,先列出最近5天被访问过的binlog文件列表 后面执行一下sh export.sh ,根据cat_x的文件大小,可以得到对应的修改记...
Inforbright 设置使用MySQL查询路径 13 Jun 2012 | 02:08 pm
Infobright自带了查询优化器,从它的总体架构图可以看到,既有infobright的查询优化器,也有MySQL的查询优化器 今天 逸轩-TB 在使用ib进行一个较为复杂的查询的时候,遇到了这样一个错误 Query error #5: The query includes syntax that is not supported by the Infobright Optimizer...
Find out the difference between Com_Select and InnoDB_rows_read 17 May 2012 | 03:57 pm
This morning one MySQL cluster ( 4 Master ,4 Slave) , one mysql server ‘s response time raises up. The raid config of the server The pressure tends of this server The first trend is MySQL Com_sele...
[InnoDB]Truncate table difference between InnoDB build-in and InnoDB Plugin-in 16 May 2012 | 09:26 pm
MySQL(5.1.37) InnoDB Build-in How Can we certify we using InnoDB Plugin, you just need run “show plugins” ,if you see the result like above, it is. When we truncate one table . After we truncate...