1.使用 show session status like '%Com_%'; 可以查看当前连接的各个sql的执行频率 show global status like '%Com_%'; 可以查看从上次mysql服务器启动到目前为止sql的执行频率2.explain select * f...
分类:
数据库 时间:
2014-07-16 20:41:50
阅读次数:
324
/*使用UIImagePickerController和UIPopverController,先在头文件中设置要遵循的协议:*/@implementation PickerVC{ /*UIPopoverController must use the global variable*/ UIPop.....
分类:
其他好文 时间:
2014-07-16 20:40:53
阅读次数:
134
在函数体内定义的global变量,函数体外可以使用,在函数体外定义的global变量不能在函数体内使用,$global $a; $a=123; function f() { echo $a; //错误, } //再看看下面一例 function f() { global $a; $a=123; } ...
分类:
其他好文 时间:
2014-07-13 09:44:00
阅读次数:
160
1.key_buffer 索引块大小 set global hot_cache.key_buffer_size = 1024; //设置大小 show variables like 'key_buffer_size'; 查看大小 PS::不可删除默认的key_buffer大小 ...
分类:
数据库 时间:
2014-07-12 15:53:55
阅读次数:
259
#! /bin/sh# From configure.in Revision: 1.430.2.25 .# Guess values for system-dependent variables and create Makefiles.# Generated by GNU Autoconf 2.6...
分类:
其他好文 时间:
2014-07-12 08:55:09
阅读次数:
361
现有两个oracle DB为A和B,为了能在A数据库中对B数据库进行操作,我们需要在A数据库中建立对B的DBLink。 在创建DBLink之前,我们首先去检查下DB A的global_names的值(select name,value from v$parameter where name ='g....
分类:
数据库 时间:
2014-07-11 19:43:49
阅读次数:
218
Kernel Page Global Directory(PGD)of User process created在早期版本:在fork一个进程的时候,必须建立进程自己的内核页目录项(内核页目录项要与用户空间的页目录放在同一个物理地址连续的页面上,所以不能共享,但所有进程的内核页表与进程0共享)3G用...
分类:
系统相关 时间:
2014-07-11 18:06:32
阅读次数:
413
from:http://www.opsers.org/server/10-configuration-mysql-mysql-must-adjust-optimization.html大多数配置能在运行时使用SET GLOBAL改变。这是非常便捷的方法它能使你在出问题后快速撤销变更。但是,要永久生效...
分类:
数据库 时间:
2014-07-11 10:36:28
阅读次数:
282
本人自己录制的swift菜鸟入门,欢迎大家拍砖,有什么问题可以在这里留言。 主要内容: 存储属性(Stored Properties) 计算属性(Computed Properties) 属性观察器(Property Observers) 全局变量和局部变量(Global and Local Variables) 类型属性(Type Properties) 视频地址: 百度网盘:http://p...
分类:
其他好文 时间:
2014-07-10 20:45:28
阅读次数:
293
LINUX环境下多线程编程肯定会遇到需要条件变量的情况,此时必然要使用pthread_cond_wait()函数。但这个函数的执行过程比较难于理解。
pthread_cond_wait()的工作流程如下(以MAN中的EXAMPLE为例):
Consider two shared variables x and y, protected by the mutex mut,...
分类:
其他好文 时间:
2014-07-10 19:50:36
阅读次数:
347