随笔分类 - mysql 源代码
摘要:mysql默认时区:mysql> show variables like '%time_zone%'; + + + | Variable_name | Value | + + + | system_time_zone | PDT | | time_zone | SYSTEM | + + + 2 ro
阅读全文
摘要:http://blog.csdn.net/wyzxg/article/details/8626814 http://blog.itpub.net/22664653/viewspace-750408/ 因为一个收集集团机器的历史性能的数据库的一个表涨到2.2 T,而磁盘空间总共2.6 T,和开发讨论之
阅读全文
摘要:MySQL比较理想的最大连接数计算方式为: 1 max_used_connections / max_connections * 100% ≈ 85% 1 max_used_connections / max_connections * 100% ≈ 85% 1 1 max_used_connect
阅读全文
摘要:http://blog.itpub.net/15480802/viewspace-755582/ 在服务器级别只提供了query cache,而在存储引擎级别,MyISAM和InnoDB分别引入了key cache和buffer pool 什么是query cache Mysql没有shared_p
阅读全文
摘要:今天一个朋友向我咨询怎么去优化 MySQL,我按着思维整理了一下,大概粗的可以分为21个方向。 还有一些细节东西(table cache, 表设计,索引设计,程序端缓存之类的)先不列了,对一个系统,初期能把下面做完也是一个不错的系统。 1. 要确保有足够的内存 数据库能够高效的运行,最关建的因素需要
阅读全文
摘要:http://www.orczhou.com/index.php/2010/12/more-about-mysql-innodb-shutdown/http://www.orczhou.com/index.php/2014/03/some-tricky-about-mysqladmin-extended-status/https://dbarobin.com/2015/08/29/mysql-o...
阅读全文
摘要:http://ssydxa219.iteye.com/category/209848 下面开始优化下my.conf文件(这里的优化只是在mysql本身的优化,之前安装的时候也要有优化) cat /etc/my.cnf # For advice on how to change settings pl
阅读全文
摘要:http://blog.csdn.net/iefreer/article/details/12622097 MySQL查询语句执行过程及性能优化-查询过程及优化方法(JOIN/ORDER BY) MySQL查询语句执行过程及性能优化-查询过程及优化方法(JOIN/ORDER BY) 标签: mysq
阅读全文
摘要:https://code.google.com/archive/p/david-mysql-tools/downloads?page=2 http://bbs.chinaunix.net/thread-4152376-1-1.html http://insidemysql.blog.163.com/
阅读全文
摘要:https://github.com/wubx http://www.cnblogs.com/kissdb/p/4009620.html
阅读全文
摘要:http://www.cnblogs.com/kissdb/p/4009614.html 内存结构: Mysql 内存分配规则是:用多少给多少,最高到配置的值,不是立即分配 图只做大概参考 全局缓存包括: global buffer(全局内存分配总和) = innodb_buffer_pool_si
阅读全文
摘要:Each thread // that does a sequential scan for a MyISAM table// allocates a buffer of this size (in bytes) for each table it scans. If you do many seq
阅读全文
摘要:CREATE TABLE `mytest2` ( `t1` varchar(10) DEFAULT NULL, `t2` varchar(10) DEFAULT NULL, `t3` char(10) DEFAULT NULL, `t4` varchar(10) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FOR...
阅读全文
摘要:CREATE TABLE `mytest` ( `t1` varchar(10) DEFAULT NULL, `t2` varchar(10) DEFAULT NULL, `t3` char(10) DEFAULT NULL, `t4` varchar(10) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPA...
阅读全文
摘要:[root@localhost test]# python /root/soft/py_innodb_page_info.py -v t1.ibdpage offset 00000000, page type <File Space Header>page offset 00000001, page
阅读全文
摘要:字符集规则设置: 字符集修改: 字符集修改2 MySQL中的字符集转换过程 1. MySQL Server收到请求时将请求数据从character_set_client转换为character_set_connection; 2. 进行内部操作前将请求数据从character_set_connect
阅读全文
摘要:mysqladmin -r -i 2 ex | grep Innodb_rows_inserted
阅读全文
摘要:相关文件: fil0fil.h fil0fil.c 功能:对disk上的表空间及组成表空间的物理文件进行管理(如新建,打开,关闭,删除,重命名等操作);对表空间中的页在物理文件上进行存取(IO操作)。 Introduction 表空间的物理组成 Innodb在对数据库文件的管理上使用了类似oracl
阅读全文
摘要:http://blog.chinaunix.net/xmlrpc.php?id=3886838&r=blog/article&uid=26664667
阅读全文
摘要:慢查询日志: 打开慢查询日志: set global slow_query_log=on; 输出格式定义:log_output: [file|table] FILE: set global log_output='FILE';TABLE: 1.set global log_output='TABLE
阅读全文