06 2017 档案

摘要:MySQL · 特性分析 · 优化器 MRR & BKA 上一篇文章咱们对 ICP 进行了一次全面的分析,本篇文章小编继续为大家分析优化器的另外两个选项: MRR & batched_key_access(BKA) ,分析一下他们的作用、原理、相互关系、源码实现以及使用范围。 什么是 MRR MRR 阅读全文
posted @ 2017-06-30 09:43 Jandison 阅读(479) 评论(0) 推荐(0)
摘要:方法一:convert(float,字段名) as 别名 select convert(float,round(10.123232,2)) 结果:10.12 select convert(float,round(10,2)) 结果:10 方法二:cast(round(字段名,2) as numeri 阅读全文
posted @ 2017-06-29 16:04 Jandison 阅读(2175) 评论(0) 推荐(0)
摘要:1. 安装SVN服务器: 检查是否已安装 安装SVN服务器 验证安装 查看版本 2. 代码库创建: 安装完成后要建立SVN库 执行后,自动建立repositories库,查看/opt/svn/repositories文件夹包含了conf,db,format,hooks,locks,README.tx 阅读全文
posted @ 2017-06-28 10:28 Jandison 阅读(181) 评论(0) 推荐(0)
摘要:[root@wfm ~]# yum -y install pip Loaded plugins: fastestmirror, refresh-packagekit, securityLoading mirror speeds from cached hostfile* base: mirrors. 阅读全文
posted @ 2017-06-27 09:49 Jandison 阅读(483) 评论(0) 推荐(0)
摘要:二进制日志是写操作是,首先写入二进制日志缓冲(binlog_cache)然后commit,再从binlog_cache写入到binlog文件,默认大小为32K,而binlog_cache是session级别的,也就是说实际binlog cache占用内存数= connections * binlog 阅读全文
posted @ 2017-06-21 16:49 Jandison 阅读(2659) 评论(0) 推荐(0)
摘要:Antelope和Barracuda均为innodb存储引擎的文件格式,Antelope为默认格式,非压缩;Barracuda为压缩格式;两者主要的不同在于对大数据量的存储时所占用的空间差异。若要使用innodb的压缩功能,则必须使用innodb_file_format=Barracuda,不然没有 阅读全文
posted @ 2017-06-21 15:33 Jandison 阅读(874) 评论(0) 推荐(0)
摘要:0 0 * * * /usr/sbin/ntpdate -u ntp.api.bz 注意:若不加上-u参数, 会出现以下提示:no server suitable for synchronization found -u:从man ntpdate中可以看出-u参数可以越过防火墙与主机同步; ntp常 阅读全文
posted @ 2017-06-02 09:00 Jandison 阅读(187) 评论(0) 推荐(0)