06 2016 档案

摘要:select(); #var_dump($arr); $this->assign('data',$arr); $this->display(); } public function del(){ $m=M('user'); ##删除具体id数据 $id=$_GET['id']; $... 阅读全文
posted @ 2016-06-30 23:18 czcb 阅读(150) 评论(0) 推荐(0) 编辑
摘要:select(); #var_dump($arr); $this->assign('data',$arr); $this->display(); } public function del(){ $m=M('user'); ##删除具体id数据 $id=$_GET['id']; $... 阅读全文
posted @ 2016-06-30 23:18 czcb 阅读(168) 评论(0) 推荐(0) 编辑
摘要:[root@wx03 ~]# cat test.pl use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; use Data::Dumper;no utf8;# /... 阅读全文
posted @ 2016-06-30 20:11 czcb 阅读(154) 评论(0) 推荐(0) 编辑
摘要:[root@wx03 ~]# cat test.pl use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; use Data::Dumper;no utf8;# /... 阅读全文
posted @ 2016-06-30 20:11 czcb 阅读(103) 评论(0) 推荐(0) 编辑
摘要:[root@wx03 ~]# cat test.pl use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; use Data::Dumper;#no utf8;# ... 阅读全文
posted @ 2016-06-30 19:58 czcb 阅读(155) 评论(0) 推荐(0) 编辑
摘要:[root@wx03 ~]# cat test.pl use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; use Data::Dumper;#no utf8;# ... 阅读全文
posted @ 2016-06-30 19:58 czcb 阅读(133) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat f1.pl use Encode;print "验证111\n";my $d=encode_utf8('验证');print $d;print "\n";[root@dr-mysql01 ~]# perl f1.pl 验证111验证 [r... 阅读全文
posted @ 2016-06-30 19:24 czcb 阅读(70) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat f1.pl use Encode;print "验证111\n";my $d=encode_utf8('验证');print $d;print "\n";[root@dr-mysql01 ~]# perl f1.pl 验证111验证 [r... 阅读全文
posted @ 2016-06-30 19:24 czcb 阅读(106) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat getx.pl use LWP::UserAgent; $ua = LWP::UserAgent->new;# @header = (# 'accept'=> "application/json",# 'content-type'=>... 阅读全文
posted @ 2016-06-30 17:37 czcb 阅读(131) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat getx.pl use LWP::UserAgent; $ua = LWP::UserAgent->new;# @header = (# 'accept'=> "application/json",# 'content-type'=>... 阅读全文
posted @ 2016-06-30 17:37 czcb 阅读(252) 评论(0) 推荐(0) 编辑
摘要:127.0.0.1:6379> keys *b4f107c6-e96c-4a1e-8402-a3be9a619847*1) "shiro_redis_session:b4f107c6-e96c-4a1e-8402-a3be9a619847"127.0.0.1:6379> get "shiro_... 阅读全文
posted @ 2016-06-30 15:49 czcb 阅读(42330) 评论(0) 推荐(0) 编辑
摘要:127.0.0.1:6379> keys *b4f107c6-e96c-4a1e-8402-a3be9a619847*1) "shiro_redis_session:b4f107c6-e96c-4a1e-8402-a3be9a619847"127.0.0.1:6379> get "shiro_... 阅读全文
posted @ 2016-06-30 15:49 czcb 阅读(50057) 评论(0) 推荐(0) 编辑
摘要:use Net::SMTP;use LWP::UserAgent;use HTTP::Cookies;use HTTP::Headers;use HTTP::Response;use Encode;use Switch;use File::Temp qw/tempfile/;use HTTP::... 阅读全文
posted @ 2016-06-30 14:32 czcb 阅读(445) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat getx.pl use LWP::UserAgent; $ua = LWP::UserAgent->new; @header = ( 'accept'=> "application/json", 'content-type'=> "a... 阅读全文
posted @ 2016-06-30 11:17 czcb 阅读(126) 评论(0) 推荐(0) 编辑
摘要:[root@dr-mysql01 ~]# cat getx.pl use LWP::UserAgent; $ua = LWP::UserAgent->new; @header = ( 'accept'=> "application/json", 'content-type'=> "a... 阅读全文
posted @ 2016-06-30 11:17 czcb 阅读(235) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的CURD管理用户信息 http://localhost:8080/thinkphp/index.php/User/index访问User类的index方法模板不存在[./Home/Tpl/User/index.html] 需要模板文件C:\wamp\w... 阅读全文
posted @ 2016-06-29 23:41 czcb 阅读(197) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的CURD管理用户信息 http://localhost:8080/thinkphp/index.php/User/index访问User类的index方法模板不存在[./Home/Tpl/User/index.html] 需要模板文件C:\wamp\w... 阅读全文
posted @ 2016-06-29 23:41 czcb 阅读(204) 评论(0) 推荐(0) 编辑
摘要:C:\>ping wechatTest.winfae.com正在 Ping wechatTest.winfae.com [120.55.118.6] 具有 32 字节的数据:来自 120.55.118.6 的回复: 字节=32 时间=5ms TTL=54来自 120.55.118.6 的回复: ... 阅读全文
posted @ 2016-06-29 16:40 czcb 阅读(264) 评论(0) 推荐(0) 编辑
摘要:C:\>ping wechatTest.winfae.com正在 Ping wechatTest.winfae.com [120.55.118.6] 具有 32 字节的数据:来自 120.55.118.6 的回复: 字节=32 时间=5ms TTL=54来自 120.55.118.6 的回复: ... 阅读全文
posted @ 2016-06-29 16:40 czcb 阅读(199) 评论(0) 推荐(0) 编辑
摘要:14.5.7 Storing InnoDB Undo Logs in Separate Tablespaces 存储InnoDB Undo logs 到单独的表空间在MySQL 5.6.3,你可以存储InnoDB undo logs 在一个或者多个单独的undo 表空间在system table... 阅读全文
posted @ 2016-06-29 14:05 czcb 阅读(102) 评论(0) 推荐(0) 编辑
摘要:14.5.7 Storing InnoDB Undo Logs in Separate Tablespaces 存储InnoDB Undo logs 到单独的表空间在MySQL 5.6.3,你可以存储InnoDB undo logs 在一个或者多个单独的undo 表空间在system table... 阅读全文
posted @ 2016-06-29 14:05 czcb 阅读(124) 评论(0) 推荐(0) 编辑
摘要:14.5.5 Creating a File-Per-Table Tablespace Outside the Data Directory 创建一个File-Per-Table Tablespace 在Data Directory 外面:创建一个新的 InnoDB file-per-tabl... 阅读全文
posted @ 2016-06-29 10:41 czcb 阅读(113) 评论(0) 推荐(0) 编辑
摘要:14.5.5 Creating a File-Per-Table Tablespace Outside the Data Directory 创建一个File-Per-Table Tablespace 在Data Directory 外面:创建一个新的 InnoDB file-per-tabl... 阅读全文
posted @ 2016-06-29 10:41 czcb 阅读(119) 评论(0) 推荐(0) 编辑
摘要:function do_login(){ //获取用户名和密码信息,和数据库中比对 echo 111111111; dump($_POST); dump($_SESSION); echo 222222222; $username=$_POST['username']; $pass... 阅读全文
posted @ 2016-06-29 09:19 czcb 阅读(140) 评论(0) 推荐(0) 编辑
摘要:function do_login(){ //获取用户名和密码信息,和数据库中比对 echo 111111111; dump($_POST); dump($_SESSION); echo 222222222; $username=$_POST['username']; $pass... 阅读全文
posted @ 2016-06-29 09:19 czcb 阅读(114) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的CURD介绍 (了解)二、ThinkPHP 3 读取数据 (重点) 对数据的读取 Read $m=new Model('User'); ##返回一个实例 $m=M('User'); select #调用实例下的方法 $m->select();//获... 阅读全文
posted @ 2016-06-28 22:39 czcb 阅读(116) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的CURD介绍 (了解)二、ThinkPHP 3 读取数据 (重点) 对数据的读取 Read $m=new Model('User'); ##返回一个实例 $m=M('User'); select #调用实例下的方法 $m->select();//获... 阅读全文
posted @ 2016-06-28 22:39 czcb 阅读(156) 评论(0) 推荐(0) 编辑
摘要:function do_login(){ //获取用户名和密码信息,和数据库中比对 echo 111111111; dump($_POST); dump($_SESSION); echo 222222222; $username=$_POST['username']; $pass... 阅读全文
posted @ 2016-06-28 21:57 czcb 阅读(132) 评论(0) 推荐(0) 编辑
摘要:function do_login(){ //获取用户名和密码信息,和数据库中比对 echo 111111111; dump($_POST); dump($_SESSION); echo 222222222; $username=$_POST['username']; $pass... 阅读全文
posted @ 2016-06-28 21:57 czcb 阅读(166) 评论(0) 推荐(0) 编辑
摘要:14.5.4 InnoDB File-Per-Table Tablespaces 每个表一个文件从历史上看, 所有的InnoDB 表和索引是存储在system 表空间,这个整体的方法是针对机器专注于数据库处理,精心策划的数据增长,任何磁盘存储分配给MySQL 不会用于其他目的。InnoDB的... 阅读全文
posted @ 2016-06-28 17:31 czcb 阅读(248) 评论(0) 推荐(0) 编辑
摘要:14.5.4 InnoDB File-Per-Table Tablespaces 每个表一个文件从历史上看, 所有的InnoDB 表和索引是存储在system 表空间,这个整体的方法是针对机器专注于数据库处理,精心策划的数据增长,任何磁盘存储分配给MySQL 不会用于其他目的。InnoDB的... 阅读全文
posted @ 2016-06-28 17:31 czcb 阅读(192) 评论(0) 推荐(0) 编辑
摘要:14.5.2 Changing the Number or Size of InnoDB Redo Log Files 改变InnoDB Redo Log Files的数量改变InnoDB redo log files的数量 在MySQL 5.6.7或者更早版本,执行下面步骤:1.如果 inn... 阅读全文
posted @ 2016-06-28 13:32 czcb 阅读(103) 评论(0) 推荐(0) 编辑
摘要:14.5.2 Changing the Number or Size of InnoDB Redo Log Files 改变InnoDB Redo Log Files的数量改变InnoDB redo log files的数量 在MySQL 5.6.7或者更早版本,执行下面步骤:1.如果 inn... 阅读全文
posted @ 2016-06-28 13:32 czcb 阅读(121) 评论(0) 推荐(0) 编辑
摘要:14.5.1 Resizing the InnoDB System Tablespace 本节描述如何增加或者减少InnoDB 系统表空间的大小增加InnoDB 系统表空间的大小最简单的方式增加InnoDB 系统表空间的大小是配置它从一开始就自动增长。指定最后数据文件在表空间定义的自动增长属性... 阅读全文
posted @ 2016-06-28 13:15 czcb 阅读(96) 评论(0) 推荐(0) 编辑
摘要:14.5.1 Resizing the InnoDB System Tablespace 本节描述如何增加或者减少InnoDB 系统表空间的大小增加InnoDB 系统表空间的大小最简单的方式增加InnoDB 系统表空间的大小是配置它从一开始就自动增长。指定最后数据文件在表空间定义的自动增长属性... 阅读全文
posted @ 2016-06-28 13:15 czcb 阅读(144) 评论(0) 推荐(0) 编辑
摘要:14.4.9 Configuring Spin Lock Polling 配置Spin lock 轮询:很多InnoDB mutexes 和rw-locks 是保留一小段时间,在一个多核系统,它可以更加有效的对于一个thread 不断的检查如果 它需要一个mutex or rw-lock一段... 阅读全文
posted @ 2016-06-28 10:40 czcb 阅读(175) 评论(0) 推荐(0) 编辑
摘要:14.4.9 Configuring Spin Lock Polling 配置Spin lock 轮询:很多InnoDB mutexes 和rw-locks 是保留一小段时间,在一个多核系统,它可以更加有效的对于一个thread 不断的检查如果 它需要一个mutex or rw-lock一段... 阅读全文
posted @ 2016-06-28 10:40 czcb 阅读(159) 评论(0) 推荐(0) 编辑
摘要:14.4.8 Configuring the InnoDB Master Thread IO Rate 配置InnoDB Master Thread I/O Rate主的master thread 在InnoDB 是一个thread 在后台执行各种任务。很多那些任务是I/O相关的, 比如flu... 阅读全文
posted @ 2016-06-27 17:12 czcb 阅读(114) 评论(0) 推荐(0) 编辑
摘要:14.4.7 Configuring the Number of Background InnoDB IO Threads 配置 后台InnoDB IO Threads的数量InnoDB 使用background thread 来服务各种类型的I/O请求。你可以配置 后台threads的数量 ,... 阅读全文
posted @ 2016-06-27 16:35 czcb 阅读(134) 评论(0) 推荐(0) 编辑
摘要:14.4.7 Configuring the Number of Background InnoDB IO Threads 配置 后台InnoDB IO Threads的数量InnoDB 使用background thread 来服务各种类型的I/O请求。你可以配置 后台threads的数量 ,... 阅读全文
posted @ 2016-06-27 16:35 czcb 阅读(90) 评论(0) 推荐(0) 编辑
摘要:14.4.6 Configuring Thread Concurrency for InnoDB 配置Thread 并发InnoDB 使用操作系统threads 来处理用户的事务请求。(事务可以执行很多请求到InnoDB 在它们提交或者回滚前)在现代的操作系统和多核服务器, 上下文切换是有效的... 阅读全文
posted @ 2016-06-27 15:59 czcb 阅读(147) 评论(0) 推荐(0) 编辑
摘要:14.4.6 Configuring Thread Concurrency for InnoDB 配置Thread 并发InnoDB 使用操作系统threads 来处理用户的事务请求。(事务可以执行很多请求到InnoDB 在它们提交或者回滚前)在现代的操作系统和多核服务器, 上下文切换是有效的... 阅读全文
posted @ 2016-06-27 15:59 czcb 阅读(186) 评论(0) 推荐(0) 编辑
摘要:14.4.5 Configuring InnoDB Change Buffering 配置InnoDB Change Buffering当INSERT,UPDATE,和删除操作在表上操作, 索引列的值(特别是secondary keys的值)通常是不排序的,需要真正的I/O。InnoDB 有... 阅读全文
posted @ 2016-06-27 14:00 czcb 阅读(147) 评论(0) 推荐(0) 编辑
摘要:14.4.5 Configuring InnoDB Change Buffering 配置InnoDB Change Buffering当INSERT,UPDATE,和删除操作在表上操作, 索引列的值(特别是secondary keys的值)通常是不排序的,需要真正的I/O。InnoDB 有... 阅读全文
posted @ 2016-06-27 14:00 czcb 阅读(145) 评论(0) 推荐(0) 编辑
摘要:14.4.4 Configuring the Memory Allocator for InnoDB InnoDB 配置内存分配器当InnoDB 被开发, 内分配齐 提供了与操作系统和运行库往往缺乏在性能和可扩展性,当时, 没有内存分配库调整对于多核CPUs.因此,InnoDB实现它自己的内存... 阅读全文
posted @ 2016-06-27 11:05 czcb 阅读(139) 评论(0) 推荐(0) 编辑
摘要:14.4.4 Configuring the Memory Allocator for InnoDB InnoDB 配置内存分配器当InnoDB 被开发, 内分配齐 提供了与操作系统和运行库往往缺乏在性能和可扩展性,当时, 没有内存分配库调整对于多核CPUs.因此,InnoDB实现它自己的内存... 阅读全文
posted @ 2016-06-27 11:05 czcb 阅读(112) 评论(0) 推荐(0) 编辑
摘要:timeout connect timeout contimeout (deprecated) Set the maximum time to wait for a connection attempt to a server to succeed. 设置最大值来等待一个连接尝试成功连接到... 阅读全文
posted @ 2016-06-27 10:03 czcb 阅读(157) 评论(0) 推荐(0) 编辑
摘要:timeout connect timeout contimeout (deprecated) Set the maximum time to wait for a connection attempt to a server to succeed. 设置最大值来等待一个连接尝试成功连接到... 阅读全文
posted @ 2016-06-27 10:03 czcb 阅读(186) 评论(0) 推荐(0) 编辑
摘要:haproxy 服务端超时时间:haproxy 配置:timeout server 17000 --后台程序17秒没有响应,返回超时Jun 27 09:29:56 localhost haproxy[13593]: 192.168.32.101:43552 [27/Jun/2016:09:... 阅读全文
posted @ 2016-06-27 09:36 czcb 阅读(263) 评论(0) 推荐(0) 编辑
摘要:haproxy 服务端超时时间:haproxy 配置:timeout server 17000 --后台程序17秒没有响应,返回超时Jun 27 09:29:56 localhost haproxy[13593]: 192.168.32.101:43552 [27/Jun/2016:09:... 阅读全文
posted @ 2016-06-27 09:36 czcb 阅读(328) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的输出 (重点) a、通过 echo 等PHP原生的输出方式在页面中输出 b、通过display方法输出 想分配变量可以使用assign方法 c、修改左右定界符 休要修改配置文件中的配置项 'TMPL_L_DELIM'=>''}>', //修... 阅读全文
posted @ 2016-06-26 23:38 czcb 阅读(114) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的输出 (重点) a、通过 echo 等PHP原生的输出方式在页面中输出 b、通过display方法输出 想分配变量可以使用assign方法 c、修改左右定界符 休要修改配置文件中的配置项 'TMPL_L_DELIM'=>''}>', //修... 阅读全文
posted @ 2016-06-26 23:38 czcb 阅读(110) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的输出 (重点) a、通过 echo 等PHP原生的输出方式在页面中输出 b、通过display方法输出 想分配变量可以使用assign方法 c、修改左右定界符 休要修改配置文件中的配置项 'TMPL_L_DELIM'=>''}>', /... 阅读全文
posted @ 2016-06-26 14:04 czcb 阅读(125) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、ThinkPHP 3 的输出 (重点) a、通过 echo 等PHP原生的输出方式在页面中输出 b、通过display方法输出 想分配变量可以使用assign方法 c、修改左右定界符 休要修改配置文件中的配置项 'TMPL_L_DELIM'=>''}>', /... 阅读全文
posted @ 2016-06-26 14:04 czcb 阅读(139) 评论(0) 推荐(0) 编辑
摘要:14.4.3.6 Fine-tuning InnoDB Buffer Pool Flushing 微调 InnoDB Buffer Pool 刷新:innodb_flush_neighbors and innodb_lru_scan_depth 配置选项 让你微调flush处理的某些方面对于In... 阅读全文
posted @ 2016-06-24 17:43 czcb 阅读(282) 评论(0) 推荐(0) 编辑
摘要:14.4.3.6 Fine-tuning InnoDB Buffer Pool Flushing 微调 InnoDB Buffer Pool 刷新:innodb_flush_neighbors and innodb_lru_scan_depth 配置选项 让你微调flush处理的某些方面对于In... 阅读全文
posted @ 2016-06-24 17:43 czcb 阅读(120) 评论(0) 推荐(0) 编辑
摘要:14.4.3.5 Configuring InnoDB Buffer Pool Flushing 配置InnoDB Buffer Pool 刷新:InnoDB执行某些任务在后台, 包括flush 脏数据(那些页已经被修改了但是没有会写到磁盘) 在Buffer pool里。InnoDB flush... 阅读全文
posted @ 2016-06-24 16:50 czcb 阅读(112) 评论(0) 推荐(0) 编辑
摘要:14.4.3.5 Configuring InnoDB Buffer Pool Flushing 配置InnoDB Buffer Pool 刷新:InnoDB执行某些任务在后台, 包括flush 脏数据(那些页已经被修改了但是没有会写到磁盘) 在Buffer pool里。InnoDB flush... 阅读全文
posted @ 2016-06-24 16:50 czcb 阅读(110) 评论(0) 推荐(0) 编辑
摘要:14.4.3.4 Configuring InnoDB Buffer Pool Prefetching (Read-Ahead) 配置InnoDB Buffer pool 预读一个预读请求 是一个I/O请求来预取多个页 在buffer poo里 一般的,预计 那些页面很快会被需要。 请求把所... 阅读全文
posted @ 2016-06-24 15:47 czcb 阅读(135) 评论(0) 推荐(0) 编辑
摘要:14.4.3.4 Configuring InnoDB Buffer Pool Prefetching (Read-Ahead) 配置InnoDB Buffer pool 预读一个预读请求 是一个I/O请求来预取多个页 在buffer poo里 一般的,预计 那些页面很快会被需要。 请求把所... 阅读全文
posted @ 2016-06-24 15:47 czcb 阅读(148) 评论(0) 推荐(0) 编辑
摘要:14.4.3.3 Making the Buffer Pool Scan Resistant 让Buffer Pool 扫描相比使用一个严格的LRU算法, InnoDB 使用一个技术来最小化数据的总量,带入到buffer pool不会被再次访问。目的是确保频繁访问的("hot") 页停留在bu... 阅读全文
posted @ 2016-06-24 14:39 czcb 阅读(129) 评论(0) 推荐(0) 编辑
摘要:14.4.3.3 Making the Buffer Pool Scan Resistant 让Buffer Pool 扫描相比使用一个严格的LRU算法, InnoDB 使用一个技术来最小化数据的总量,带入到buffer pool不会被再次访问。目的是确保频繁访问的("hot") 页停留在bu... 阅读全文
posted @ 2016-06-24 14:39 czcb 阅读(116) 评论(0) 推荐(0) 编辑
摘要:https://www.zjtest6.com/admin/api/menuhaproxy 日志;Jun 24 13:23:02 localhost haproxy[23205]: 192.168.33.29:56800 [24/Jun/2016:13:23:02.677] www~ appse... 阅读全文
posted @ 2016-06-24 13:25 czcb 阅读(258) 评论(0) 推荐(0) 编辑
摘要:https://www.zjtest6.com/admin/api/menuhaproxy 日志;Jun 24 13:23:02 localhost haproxy[23205]: 192.168.33.29:56800 [24/Jun/2016:13:23:02.677] www~ appse... 阅读全文
posted @ 2016-06-24 13:25 czcb 阅读(316) 评论(0) 推荐(0) 编辑
摘要:https://www.winfae.com/admin/api/menuhaproxy 日志:Jun 24 13:04:49 localhost haproxy[14817]: 115.236.160.82:55729 [24/Jun/2016:13:04:49.530] http~ apps... 阅读全文
posted @ 2016-06-24 13:07 czcb 阅读(175) 评论(0) 推荐(0) 编辑
摘要:https://www.winfae.com/admin/api/menuhaproxy 日志:Jun 24 13:04:49 localhost haproxy[14817]: 115.236.160.82:55729 [24/Jun/2016:13:04:49.530] http~ apps... 阅读全文
posted @ 2016-06-24 13:07 czcb 阅读(106) 评论(0) 推荐(0) 编辑
摘要:use Mojolicious::Lite;use JSON qw/encode_json decode_json/; use Encode;no strict;use JSON; # /foo?user=sri get '/admin/api/menu' => sub { ... 阅读全文
posted @ 2016-06-24 11:53 czcb 阅读(646) 评论(0) 推荐(0) 编辑
摘要:14.4.3.2 Configuring Multiple Buffer Pool Instances 配置多个buffer pool 实例:对于系统 buffer pool 有多个G的范围, 把buffer pool 分成多个单独的实例可以改进并发,降低不同threads 读取和写到cach... 阅读全文
posted @ 2016-06-24 09:39 czcb 阅读(118) 评论(0) 推荐(0) 编辑
摘要:本节课大纲:一、什么是MVC //了解 M -Model 编写model类 对数据进行操作 使用Model类 来操作数据 V -View 编写html文件,页面呈现 C -Controller 编写类文件(UserAction.class.php) 二、Thin... 阅读全文
posted @ 2016-06-23 22:46 czcb 阅读(120) 评论(0) 推荐(0) 编辑
摘要:14.4.3.1 The InnoDB Buffer Pool14.4.3.2 Configuring Multiple Buffer Pool Instances14.4.3.3 Making the Buffer Pool Scan Resistant14.4.3.4 Configuring... 阅读全文
posted @ 2016-06-23 17:57 czcb 阅读(134) 评论(0) 推荐(0) 编辑
摘要:14.4.2 Configuring InnoDB for Read-Only Operation 配置InnoDB 永于只读操作:你可以查询InnoDB 表 MySQL 数据目录是在只读介质里,通过启用--innodb-read-only 配置选项在服务器启动时:如何启动:准备一个实例用于只... 阅读全文
posted @ 2016-06-23 10:30 czcb 阅读(108) 评论(0) 推荐(0) 编辑
摘要:14.4.2 Configuring InnoDB for Read-Only Operation 配置InnoDB 永于只读操作:你可以查询InnoDB 表 MySQL 数据目录是在只读介质里,通过启用--innodb-read-only 配置选项在服务器启动时:如何启动:准备一个实例用于只... 阅读全文
posted @ 2016-06-23 10:30 czcb 阅读(234) 评论(0) 推荐(0) 编辑
摘要:事务不提交,也有可能写redo和数据文件 阅读全文
posted @ 2016-06-22 16:36 czcb 阅读(165) 评论(0) 推荐(0) 编辑
摘要:14.4 InnoDB Configuration :InnoDB 配置:14.4 InnoDB Configuration14.4.1 InnoDB Startup Configuration14.4.2 Configuring InnoDB for Read-Only Operation14... 阅读全文
posted @ 2016-06-22 16:32 czcb 阅读(126) 评论(0) 推荐(0) 编辑
摘要:14.4 InnoDB Configuration :InnoDB 配置:14.4 InnoDB Configuration14.4.1 InnoDB Startup Configuration14.4.2 Configuring InnoDB for Read-Only Operation14... 阅读全文
posted @ 2016-06-22 16:32 czcb 阅读(105) 评论(0) 推荐(0) 编辑
摘要:一般配置SLB的时候有个权重0到100,是如何选择数值的? 权重需要您根据后端机器的配置进行选择比如AB两台机器性能一致就分别设置50,这样请求就会在这两台机器上轮询,不同权重决定请求分发的分配。slb中权重是什么概念, 值越大是不是分担越多? 权重比越高的ECS将被分配到更多的访问请求 ... 阅读全文
posted @ 2016-06-22 15:56 czcb 阅读(207) 评论(0) 推荐(0) 编辑
摘要:一般配置SLB的时候有个权重0到100,是如何选择数值的? 权重需要您根据后端机器的配置进行选择比如AB两台机器性能一致就分别设置50,这样请求就会在这两台机器上轮询,不同权重决定请求分发的分配。slb中权重是什么概念, 值越大是不是分担越多? 权重比越高的ECS将被分配到更多的访问请求 ... 阅读全文
posted @ 2016-06-22 15:56 czcb 阅读(206) 评论(0) 推荐(0) 编辑
摘要:121.40.205.143 - - [22/Jun/2016:12:56:23 +0800] "GET /wechat/account.html HTTP/1.1" 200 3432 "-" "Mozilla/8.0" --此时地址为haproxy的地址 120.55.118.6 - - [... 阅读全文
posted @ 2016-06-22 13:15 czcb 阅读(146) 评论(0) 推荐(0) 编辑
摘要:121.40.205.143 - - [22/Jun/2016:12:56:23 +0800] "GET /wechat/account.html HTTP/1.1" 200 3432 "-" "Mozilla/8.0" --此时地址为haproxy的地址 120.55.118.6 - - [... 阅读全文
posted @ 2016-06-22 13:15 czcb 阅读(265) 评论(0) 推荐(0) 编辑
摘要:14.3.5.3 How to Minimize and Handle Deadlocks 如何减少和处理死锁这个章节建立关于死锁的概念信息,它解释如何组织数据库操作来减少死锁和随后的错误处理:Deadlocks 是一个金典问题在事务数据库, 但是它们并不危险除非它们是如此拼单以至于你根本不能运... 阅读全文
posted @ 2016-06-21 16:50 czcb 阅读(119) 评论(0) 推荐(0) 编辑
摘要:14.3.5.3 How to Minimize and Handle Deadlocks 如何减少和处理死锁这个章节建立关于死锁的概念信息,它解释如何组织数据库操作来减少死锁和随后的错误处理:Deadlocks 是一个金典问题在事务数据库, 但是它们并不危险除非它们是如此拼单以至于你根本不能运... 阅读全文
posted @ 2016-06-21 16:50 czcb 阅读(120) 评论(0) 推荐(0) 编辑
摘要:if ($http_user_agent ~* '(Android|webOS|iPhone|iPod|BlackBerry|vivo)') { set $mobile_request '1'; }= 严格匹配。如果这个查询匹配,那么将停止搜索并立即处理此请求。~ 为区分大小写匹... 阅读全文
posted @ 2016-06-21 15:19 czcb 阅读(152) 评论(0) 推荐(0) 编辑
摘要:if ($http_user_agent ~* '(Android|webOS|iPhone|iPod|BlackBerry|vivo)') { set $mobile_request '1'; }= 严格匹配。如果这个查询匹配,那么将停止搜索并立即处理此请求。~ 为区分大小写匹... 阅读全文
posted @ 2016-06-21 15:19 czcb 阅读(245) 评论(0) 推荐(0) 编辑
摘要:docker:/root# docker run -itd --name zjtest8_frontend -v /data/zjtest8/frontend/:/var/www 192.168.32.150:5000/zjzc_centos6.5_m3 bashe7ddb534ff695fe5... 阅读全文
posted @ 2016-06-21 13:29 czcb 阅读(135) 评论(0) 推荐(0) 编辑
摘要:docker:/root# docker run -itd --name zjtest8_frontend -v /data/zjtest8/frontend/:/var/www 192.168.32.150:5000/zjzc_centos6.5_m3 bashe7ddb534ff695fe5... 阅读全文
posted @ 2016-06-21 13:29 czcb 阅读(116) 评论(0) 推荐(0) 编辑
摘要:docker:/etc/init.d# docker ps -a | grep regc7d5592a3658 registry "docker-registry" 11 minutes ago ... 阅读全文
posted @ 2016-06-21 13:20 czcb 阅读(844) 评论(0) 推荐(0) 编辑
摘要:docker:/etc/init.d# docker ps -a | grep regc7d5592a3658 registry "docker-registry" 11 minutes ago ... 阅读全文
posted @ 2016-06-21 13:20 czcb 阅读(375) 评论(0) 推荐(0) 编辑
摘要:1.docker pull registry //下载registry 镜像,registry 为docker 官方提供的一个镜像,我们可以用它来创建本地的docker私有仓库。docker:/root# docker images | grep registryregistry ... 阅读全文
posted @ 2016-06-21 13:08 czcb 阅读(252) 评论(0) 推荐(0) 编辑
摘要:14.3.5.2 Deadlock Detection and Rollback 死锁检测和回滚:InnoDB 自动检查四艘,回滚一个事务或者事务来打破死锁。InnoDB 试图选择小的事务来回滚, 事务的大小是由 插入 修改 或者删除的记录数决定InnoDB 知道 表锁 如果 innodb_... 阅读全文
posted @ 2016-06-21 10:55 czcb 阅读(132) 评论(0) 推荐(0) 编辑
摘要:14.3.5 Deadlocks in InnoDB14.3.5.1 An InnoDB Deadlock Example14.3.5.2 Deadlock Detection and Rollback14.3.5.3 How to Minimize and Handle Deadlocks死锁... 阅读全文
posted @ 2016-06-20 17:51 czcb 阅读(141) 评论(0) 推荐(0) 编辑
摘要:14.3.4 Phantom Rows 幻影行所谓的幻读为发生在一个事务 当相同的查询产生不同的结果集在不同的时间。比如,如果一个SELECT被执行2次, 但是第2次返回的记录不是第一次返回的记录,行是幻行假设在child 表的id列上有一个索引 ,你需要读取和锁定所有的行 值大于100的,... 阅读全文
posted @ 2016-06-20 15:15 czcb 阅读(115) 评论(0) 推荐(0) 编辑
摘要:14.3.4 Phantom Rows 幻影行所谓的幻读为发生在一个事务 当相同的查询产生不同的结果集在不同的时间。比如,如果一个SELECT被执行2次, 但是第2次返回的记录不是第一次返回的记录,行是幻行假设在child 表的id列上有一个索引 ,你需要读取和锁定所有的行 值大于100的,... 阅读全文
posted @ 2016-06-20 15:15 czcb 阅读(127) 评论(0) 推荐(0) 编辑
摘要:14.3.3 Locks Set by Different SQL Statements in InnoDB 不同的SQL语句在InnoDB里的锁设置locking read, 一个UPDATE,或者一个DELETE 通常设置record locks 在每个index record它不关心 是... 阅读全文
posted @ 2016-06-20 10:37 czcb 阅读(171) 评论(0) 推荐(0) 编辑
摘要:REPEATABLE READThis is the default isolation level for InnoDB. For consistent reads, there is an important difference from the READ COMMITTED isola... 阅读全文
posted @ 2016-06-17 17:44 czcb 阅读(211) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from t100; Session 2:+----+------+-------+------+| sn | id | quota | free... 阅读全文
posted @ 2016-06-17 16:59 czcb 阅读(149) 评论(0) 推荐(0) 编辑
摘要:mysql> select * from t100; Session 2:+----+------+-------+------+| sn | id | quota | free... 阅读全文
posted @ 2016-06-17 16:59 czcb 阅读(112) 评论(0) 推荐(0) 编辑
摘要:Session 1: Session 2:mysql> show variables like '%tx_isolation%';+---------------+-------... 阅读全文
posted @ 2016-06-17 16:51 czcb 阅读(98) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/perl#取文件行数##循环开始清空文件use POSIX;use DBI;my $dir = '/data01/applog_backup';my $file = "$ARGV[0]";my $SDATE = strftime("%Y-%m-%d",localtime(... 阅读全文
posted @ 2016-06-17 14:26 czcb 阅读(165) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/perl#取文件行数##循环开始清空文件use POSIX;use DBI;my $dir = '/data01/applog_backup';my $file = "$ARGV[0]";my $SDATE = strftime("%Y-%m-%d",localtime(... 阅读全文
posted @ 2016-06-17 14:26 czcb 阅读(160) 评论(0) 推荐(0) 编辑
摘要:get '/api/log_mon/get_log' => sub{ my $c = shift; my $env = $c->param('env'); my $host = $c->param('host'); use DBI;my $dbUser='DEVOPS'; m... 阅读全文
posted @ 2016-06-17 12:36 czcb 阅读(145) 评论(0) 推荐(0) 编辑
摘要:get '/api/log_mon/get_log' => sub{ my $c = shift; my $env = $c->param('env'); my $host = $c->param('host'); use DBI;my $dbUser='DEVOPS'; m... 阅读全文
posted @ 2016-06-17 12:36 czcb 阅读(106) 评论(0) 推荐(0) 编辑
摘要:SET FOREIGN_KEY_CHECKS=0;truncate table QRTZ_BLOB_TRIGGERS;truncate table QRTZ_CALENDARS;truncate table QRTZ_CRON_TRIGGERS;truncate table QRTZ_FIRED... 阅读全文
posted @ 2016-06-17 09:07 czcb 阅读(276) 评论(0) 推荐(0) 编辑
摘要:SET FOREIGN_KEY_CHECKS=0;truncate table QRTZ_BLOB_TRIGGERS;truncate table QRTZ_CALENDARS;truncate table QRTZ_CRON_TRIGGERS;truncate table QRTZ_FIRED... 阅读全文
posted @ 2016-06-17 09:07 czcb 阅读(149) 评论(0) 推荐(0) 编辑
摘要:14.3.2.4 Locking Reads 锁定读如果你的查询数据,然后插入或者更新相关的数据 在同一个事务,普通的SELECT 语句不足以给予足够保护。其他事务可以更新或者删除相同的你要查询的记录,InnoDB 支持2种类型的锁定读,提供额外的安全:1.SELECT ... LOCK IN... 阅读全文
posted @ 2016-06-16 10:05 czcb 阅读(179) 评论(0) 推荐(0) 编辑
摘要:14.3.2.3 Consistent Nonlocking Reads 一致性非锁定读一致性读 意味着 InnoDB 使用多版本来保护查询一个数据库在当前时间点的快照。查询看到被事务做出的修改, 在那个时间点之前提交的, 随后没有改变或者没有提交事务。例外是查询看到了在同一个会话里的更早的语... 阅读全文
posted @ 2016-06-15 17:27 czcb 阅读(158) 评论(0) 推荐(0) 编辑
摘要:14.3.2.3 Consistent Nonlocking Reads 一致性非锁定读一致性读 意味着 InnoDB 使用多版本来保护查询一个数据库在当前时间点的快照。查询看到被事务做出的修改, 在那个时间点之前提交的, 随后没有改变或者没有提交事务。例外是查询看到了在同一个会话里的更早的语... 阅读全文
posted @ 2016-06-15 17:27 czcb 阅读(185) 评论(0) 推荐(0) 编辑
摘要:14.3.2.2 autocommit, Commit, and Rollback 自动提交 提交和回滚如果自动提交模式被启用,在InnoDB里, 所有的用户活动发生在一个事务里,每个SQL语句 形成一个它自己的单独的事务。默认情况下,MySQL 启动会话用于每个新的连接 在autocommi... 阅读全文
posted @ 2016-06-15 13:26 czcb 阅读(246) 评论(0) 推荐(0) 编辑
摘要:14.3.2.2 autocommit, Commit, and Rollback 自动提交 提交和回滚如果自动提交模式被启用,在InnoDB里, 所有的用户活动发生在一个事务里,每个SQL语句 形成一个它自己的单独的事务。默认情况下,MySQL 启动会话用于每个新的连接 在autocommi... 阅读全文
posted @ 2016-06-15 13:26 czcb 阅读(244) 评论(0) 推荐(0) 编辑
摘要:14.3.2 InnoDB Transaction Model InnoDB 事务模型14.3.2.1 Transaction Isolation Levels 事务隔离级别14.3.2.2 autocommit, Commit, and Rollback14.3.2.3 Consis... 阅读全文
posted @ 2016-06-15 11:04 czcb 阅读(143) 评论(0) 推荐(0) 编辑
摘要:14.3.2 InnoDB Transaction Model InnoDB 事务模型14.3.2.1 Transaction Isolation Levels 事务隔离级别14.3.2.2 autocommit, Commit, and Rollback14.3.2.3 Consis... 阅读全文
posted @ 2016-06-15 11:04 czcb 阅读(166) 评论(0) 推荐(0) 编辑
摘要:验证secondary key 含有主键列数据SQL> select object_name,object_id,OBJECT_TYPE from user_objects;OBJECT_NAME OBJECT_ID OBJECT_TYPE--------------------... 阅读全文
posted @ 2016-06-14 22:16 czcb 阅读(139) 评论(0) 推荐(0) 编辑
摘要:验证secondary key 含有主键列数据SQL> select object_name,object_id,OBJECT_TYPE from user_objects;OBJECT_NAME OBJECT_ID OBJECT_TYPE--------------------... 阅读全文
posted @ 2016-06-14 22:16 czcb 阅读(231) 评论(0) 推荐(0) 编辑
摘要:iot表测试: 在create table语句后面使用organization index,就指定数据表创建结构是IOT。但是在不指定主键Primary Key的情况下,是不允许建表的。 create table t2 (id int primary key,a1 char(10),a2 cha... 阅读全文
posted @ 2016-06-14 21:46 czcb 阅读(179) 评论(0) 推荐(0) 编辑
摘要:iot表测试: 在create table语句后面使用organization index,就指定数据表创建结构是IOT。但是在不指定主键Primary Key的情况下,是不允许建表的。 create table t2 (id int primary key,a1 char(10),a2 cha... 阅读全文
posted @ 2016-06-14 21:46 czcb 阅读(203) 评论(0) 推荐(0) 编辑
摘要:1.创建heap 表: create table t1 (id char(10) primary key,a1 char(10),a2 char(10),a3 char(10)); SQL> select OBJECT_NAME,OBJECT_TYPE from user_objects... 阅读全文
posted @ 2016-06-14 21:04 czcb 阅读(147) 评论(0) 推荐(0) 编辑
摘要:VALUE--------------------------------------------------------------------------------/u01/diag/rdbms/wilson/wilson/trace/wilson_ora_9101.trc 阅读全文
posted @ 2016-06-13 20:11 czcb 阅读(97) 评论(0) 推荐(0) 编辑
摘要:VALUE--------------------------------------------------------------------------------/u01/diag/rdbms/wilson/wilson/trace/wilson_ora_9101.trc 阅读全文
posted @ 2016-06-13 20:11 czcb 阅读(204) 评论(0) 推荐(0) 编辑
摘要:Index Organized table by itself is a B-tree index. Index key is the primary key and the rest of columns are index values. The rows are stored in the... 阅读全文
posted @ 2016-06-13 17:45 czcb 阅读(142) 评论(0) 推荐(0) 编辑
摘要:Index Organized table by itself is a B-tree index. Index key is the primary key and the rest of columns are index values. The rows are stored in the... 阅读全文
posted @ 2016-06-13 17:45 czcb 阅读(399) 评论(0) 推荐(0) 编辑
摘要:IOT表是将所有东西都塞到叶块中,表就是索引,可以避免回表首先,对于IOT而言,只有索引段,没有数据段。一般的索引而言,叶子节点上只有索引列的取值和rowid。而对于IOT而言,主键索引上对应就是数据行和索引列取值。a,表就是索引,可以避免回表b,更新开销较大 阅读全文
posted @ 2016-06-13 15:26 czcb 阅读(132) 评论(0) 推荐(0) 编辑
摘要:IOT表是将所有东西都塞到叶块中,表就是索引,可以避免回表首先,对于IOT而言,只有索引段,没有数据段。一般的索引而言,叶子节点上只有索引列的取值和rowid。而对于IOT而言,主键索引上对应就是数据行和索引列取值。a,表就是索引,可以避免回表b,更新开销较大 阅读全文
posted @ 2016-06-13 15:26 czcb 阅读(239) 评论(0) 推荐(0) 编辑
摘要:我们知道一般的表都以堆(heap)的形式来组织的,这是无序的组织方式。 Oracle还提供了一种有序的表,它就是索引组织表,简称IOT表。IOT表上必须要有主键,而IOT表本身不对应segment,表里所有的数据都存放在主键所在的索引的叶子节点里。 ... 阅读全文
posted @ 2016-06-13 15:08 czcb 阅读(490) 评论(0) 推荐(0) 编辑
摘要:我们知道一般的表都以堆(heap)的形式来组织的,这是无序的组织方式。 Oracle还提供了一种有序的表,它就是索引组织表,简称IOT表。IOT表上必须要有主键,而IOT表本身不对应segment,表里所有的数据都存放在主键所在的索引的叶子节点里。 ... 阅读全文
posted @ 2016-06-13 15:08 czcb 阅读(167) 评论(0) 推荐(0) 编辑
摘要:Next-Key Locks一个next-key lock 是 一个record lock 在index record 和 一个区间锁 在一个区间在index record之前InnoDB 执行 row-level locking 以这样一种方式当它搜索或者扫描 一个表的索引,它设置共享或者排... 阅读全文
posted @ 2016-06-13 14:21 czcb 阅读(211) 评论(0) 推荐(0) 编辑
摘要:Session 1:mysql> select * from t1;+-----+------+------+| sn | id | info |+-----+------+------+| 235 | 1 | a1 || 236 | 2 | a2 || 237 | ... 阅读全文
posted @ 2016-06-13 12:51 czcb 阅读(99) 评论(0) 推荐(0) 编辑
摘要:Session 1:mysql> select * from t1;+-----+------+------+| sn | id | info |+-----+------+------+| 235 | 1 | a1 || 236 | 2 | a2 || 237 | ... 阅读全文
posted @ 2016-06-13 12:51 czcb 阅读(137) 评论(0) 推荐(0) 编辑
摘要:Mysql InnoDB 是IOT表 锁基于索引 阅读全文
posted @ 2016-06-11 17:06 czcb 阅读(104) 评论(0) 推荐(0) 编辑
摘要:Mysql InnoDB 是IOT表 锁基于索引 阅读全文
posted @ 2016-06-11 17:06 czcb 阅读(217) 评论(0) 推荐(0) 编辑
摘要:mysql> desc ProductInfo;+----------------+--------------+------+-----+---------+-------+| Field | Type | Null | Key | Default | Ext... 阅读全文
posted @ 2016-06-08 21:14 czcb 阅读(139) 评论(0) 推荐(0) 编辑
摘要:mysql> desc ProductInfo;+----------------+--------------+------+-----+---------+-------+| Field | Type | Null | Key | Default | Ext... 阅读全文
posted @ 2016-06-08 21:14 czcb 阅读(1356) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/perl use DBI; $db_name='scan'; $ip='127.0.0.1'; $user="root"; $passwd="1234567"; $dbh = DBI->connect("dbi:mysql:database=$db_name;... 阅读全文
posted @ 2016-06-08 21:06 czcb 阅读(127) 评论(0) 推荐(0) 编辑
摘要:#!/usr/bin/perl use DBI; $db_name='scan'; $ip='127.0.0.1'; $user="root"; $passwd="1234567"; $dbh = DBI->connect("dbi:mysql:database=$db_name;... 阅读全文
posted @ 2016-06-08 21:06 czcb 阅读(244) 评论(0) 推荐(0) 编辑
摘要:14.3.1 InnoDB Locking InnoDB 锁本章节描述InnoDB 使用的锁类型:Shared and Exclusive LocksIntention LocksRecord LocksGap LocksNext-Key LocksInsert Intention Locks... 阅读全文
posted @ 2016-06-07 23:08 czcb 阅读(140) 评论(0) 推荐(0) 编辑
摘要:14.3.1 InnoDB Locking InnoDB 锁本章节描述InnoDB 使用的锁类型:Shared and Exclusive LocksIntention LocksRecord LocksGap LocksNext-Key LocksInsert Intention Locks... 阅读全文
posted @ 2016-06-07 23:08 czcb 阅读(360) 评论(0) 推荐(0) 编辑
摘要:Session 1:mysql> select * from s100;+-----+------+------+| sn | id | info |+-----+------+------+| 227 | 1 | 1a || 228 | 3 | 3a || 229 |... 阅读全文
posted @ 2016-06-07 17:45 czcb 阅读(128) 评论(0) 推荐(0) 编辑
摘要:Session 1:mysql> select * from s100;+-----+------+------+| sn | id | info |+-----+------+------+| 227 | 1 | 1a || 228 | 3 | 3a || 229 |... 阅读全文
posted @ 2016-06-07 17:45 czcb 阅读(223) 评论(0) 推荐(0) 编辑
摘要:mysql> select sn,id,info from s100 group by id;+-----+------+------+| sn | id | info |+-----+------+------+| 227 | 1 | aa || 228 | 2 | bb... 阅读全文
posted @ 2016-06-07 15:57 czcb 阅读(198) 评论(0) 推荐(0) 编辑
摘要:mysql> select sn,id,info from s100 group by id;+-----+------+------+| sn | id | info |+-----+------+------+| 227 | 1 | aa || 228 | 2 | bb... 阅读全文
posted @ 2016-06-07 15:57 czcb 阅读(282) 评论(0) 推荐(0) 编辑
摘要:mysql> show variables like '%tx_isolation%';+---------------+-----------------+| Variable_name | Value |+---------------+-----------------... 阅读全文
posted @ 2016-06-07 14:03 czcb 阅读(386) 评论(0) 推荐(0) 编辑
摘要:mysql> show variables like '%tx_isolation%';+---------------+-----------------+| Variable_name | Value |+---------------+-----------------... 阅读全文
posted @ 2016-06-07 14:03 czcb 阅读(262) 评论(0) 推荐(0) 编辑
摘要:14.2.5.7 Physical Row Structure 物理数据结构:InnoDB物理记录结构依赖行格式 在表创建的时候, 默认, InnoDB 使用Antelope 文件存储格式和它的压缩行格式。冗余的格式是保留 和MySQL 老版本的兼容性。当你启用 innodb_file_per... 阅读全文
posted @ 2016-06-06 15:09 czcb 阅读(179) 评论(0) 推荐(0) 编辑
摘要:14.2.5.7 Physical Row Structure 物理数据结构:InnoDB物理记录结构依赖行格式 在表创建的时候, 默认, InnoDB 使用Antelope 文件存储格式和它的压缩行格式。冗余的格式是保留 和MySQL 老版本的兼容性。当你启用 innodb_file_per... 阅读全文
posted @ 2016-06-06 15:09 czcb 阅读(156) 评论(0) 推荐(0) 编辑
摘要:14.2.5.6 Adaptive Hash Indexes 自适应Hash Indexesadaptive hash index(AHI) 让InnoDB 执行更加像在一个内存数据库里在,在不牺牲任何事务功能或者可靠性。这个功能是启动通过innodb_adaptive_hash_index o... 阅读全文
posted @ 2016-06-06 13:46 czcb 阅读(120) 评论(0) 推荐(0) 编辑
摘要:14.2.5.6 Adaptive Hash Indexes 自适应Hash Indexesadaptive hash index(AHI) 让InnoDB 执行更加像在一个内存数据库里在,在不牺牲任何事务功能或者可靠性。这个功能是启动通过innodb_adaptive_hash_index o... 阅读全文
posted @ 2016-06-06 13:46 czcb 阅读(135) 评论(0) 推荐(0) 编辑
摘要:14.2.5.5 Change Buffer change buffer是一个指定的数据结构 用于caches 数据到secondary index pages 当影响的pages 不是在buffer pool里。buffered 改变了, 可以由于 INSERT, UPDATE, or DE... 阅读全文
posted @ 2016-06-06 13:06 czcb 阅读(180) 评论(0) 推荐(0) 编辑
摘要:14.2.5.5 Change Buffer change buffer是一个指定的数据结构 用于caches 数据到secondary index pages 当影响的pages 不是在buffer pool里。buffered 改变了, 可以由于 INSERT, UPDATE, or DE... 阅读全文
posted @ 2016-06-06 13:06 czcb 阅读(155) 评论(0) 推荐(0) 编辑
摘要:14.2.5.4 Physical Structure of an InnoDB Index InnoDB Index 的物理结构所有的InnoDB indexes 是B-trees ,index records 是存储在tree的leaf pages,默认的index page 大小是16K... 阅读全文
posted @ 2016-06-06 10:37 czcb 阅读(113) 评论(0) 推荐(0) 编辑
摘要:14.2.5.4 Physical Structure of an InnoDB Index InnoDB Index 的物理结构所有的InnoDB indexes 是B-trees ,index records 是存储在tree的leaf pages,默认的index page 大小是16K... 阅读全文
posted @ 2016-06-06 10:37 czcb 阅读(147) 评论(0) 推荐(0) 编辑
摘要:mysql> explain select t1.* from t2 ,t1 where t2.id=t1.id and t2.id select count(*) from t2;+----------+| count(*) |+----------+| 134 |+-------... 阅读全文
posted @ 2016-06-05 19:40 czcb 阅读(198) 评论(0) 推荐(0) 编辑
摘要:mysql> explain select t1.* from t2 ,t1 where t2.id=t1.id and t2.id select count(*) from t2;+----------+| count(*) |+----------+| 134 |+-------... 阅读全文
posted @ 2016-06-05 19:40 czcb 阅读(160) 评论(0) 推荐(0) 编辑
摘要:alter session set statistics_level=all; select t1.* from t1,t2 where t1.id=t2.id and t1.id select * from table(dbms_xplan.display_cursor(null,null,'... 阅读全文
posted @ 2016-06-05 17:14 czcb 阅读(180) 评论(0) 推荐(0) 编辑
摘要:alter session set statistics_level=all; select t1.* from t1,t2 where t1.id=t2.id and t1.id select * from table(dbms_xplan.display_cursor(null,null,'... 阅读全文
posted @ 2016-06-05 17:14 czcb 阅读(863) 评论(0) 推荐(0) 编辑
摘要:SQL> alter session set statistics_level=all;Session altered.SQL> select e.ename,e.job,d.dname from emp e,dept d where e.deptno=d.deptno and e.sal s... 阅读全文
posted @ 2016-06-05 16:46 czcb 阅读(1941) 评论(0) 推荐(0) 编辑
摘要:SQL> alter session set statistics_level=all;Session altered.SQL> select e.ename,e.job,d.dname from emp e,dept d where e.deptno=d.deptno and e.sal s... 阅读全文
posted @ 2016-06-05 16:46 czcb 阅读(245) 评论(0) 推荐(0) 编辑
摘要:mysql> explain select * from (select * from ( select * from test where id=1) a) b;+----+-------------+------------+------+---------------+------+--... 阅读全文
posted @ 2016-06-05 15:43 czcb 阅读(161) 评论(0) 推荐(0) 编辑
摘要:[root@wx03 binlog]# ls -ltrtotal 72-rw-rw---- 1 mysql mysql 15872 May 11 09:33 mysql-bin.000001-rw-rw---- 1 mysql mysql 2592 Jun 1 12:56 mysql-bin... 阅读全文
posted @ 2016-06-04 12:03 czcb 阅读(165) 评论(0) 推荐(0) 编辑
摘要:[root@wx03 binlog]# ls -ltrtotal 72-rw-rw---- 1 mysql mysql 15872 May 11 09:33 mysql-bin.000001-rw-rw---- 1 mysql mysql 2592 Jun 1 12:56 mysql-bin... 阅读全文
posted @ 2016-06-04 12:03 czcb 阅读(1512) 评论(0) 推荐(0) 编辑
摘要:mysql dump 参数: -R, --routines Dump stored routines (functions and procedures). 备份 函数和存储过程: -E, --events Dump events. 备份events ... 阅读全文
posted @ 2016-06-04 11:38 czcb 阅读(163) 评论(0) 推荐(0) 编辑
摘要:mysql dump 参数: -R, --routines Dump stored routines (functions and procedures). 备份 函数和存储过程: -E, --events Dump events. 备份events ... 阅读全文
posted @ 2016-06-04 11:38 czcb 阅读(153) 评论(0) 推荐(0) 编辑
摘要:如果是在有master上开启了该参数,记得在slave端也要开启这个参数(salve需要stop后再重新start),否则在master上创建函数会导致replaction中断。 阅读全文
posted @ 2016-06-03 21:07 czcb 阅读(103) 评论(0) 推荐(0) 编辑
摘要:mysql> show function status;+------+------------------+----------+------------+---------------------+---------------------+---------------+-------... 阅读全文
posted @ 2016-06-03 19:16 czcb 阅读(1110) 评论(0) 推荐(0) 编辑
摘要:mysql> show function status;+------+------------------+----------+------------+---------------------+---------------------+---------------+-------... 阅读全文
posted @ 2016-06-03 19:16 czcb 阅读(224) 评论(0) 推荐(0) 编辑
摘要:14.2.5.2 Clustered and Secondary Indexes :每个InnoDB 表 有一个特别的索引称为clustered index 行数据存储的地方。典型的,clustered index是主键的同义词,得到最好的查询,插入性能,和其他数据库操作,你必须了解Inno... 阅读全文
posted @ 2016-06-03 17:28 czcb 阅读(129) 评论(0) 推荐(0) 编辑
摘要:14.2.5.1 Role of the .frm File for InnoDB Tables:14.2.5.1 Role of the .frm File for InnoDB Tables InnoDB .frm文件的作用MySQL 存储表的数据字典信息在.frm文件 在数据路目录,不像... 阅读全文
posted @ 2016-06-03 16:54 czcb 阅读(104) 评论(0) 推荐(0) 编辑
摘要:14.2.5.1 Role of the .frm File for InnoDB Tables:14.2.5.1 Role of the .frm File for InnoDB Tables InnoDB .frm文件的作用MySQL 存储表的数据字典信息在.frm文件 在数据路目录,不像... 阅读全文
posted @ 2016-06-03 16:54 czcb 阅读(113) 评论(0) 推荐(0) 编辑
摘要:14.2.4 InnoDB Undo Logs :一个Undo log (或者成为回滚段) 是一个存储区域 持有被活动事务修改的数据的copy.如果另外的事务需要看原始的数据(作为一致性读操作的一部分), 为修改的数据从这个存储区域检索。默认的,这个区域是system tablespace 的一... 阅读全文
posted @ 2016-06-03 16:20 czcb 阅读(152) 评论(0) 推荐(0) 编辑
摘要:14.2.3 InnoDB Redo Log14.2.3.1 Group Commit for Redo Log Flushingredo log 是一个基于磁盘的数据结构 用于crash recovery到正确的数据(被不完全的事务写入的)在正常操作期间,redo log 可以让查询改变In... 阅读全文
posted @ 2016-06-03 16:07 czcb 阅读(88) 评论(0) 推荐(0) 编辑
摘要:14.2.3 InnoDB Redo Log14.2.3.1 Group Commit for Redo Log Flushingredo log 是一个基于磁盘的数据结构 用于crash recovery到正确的数据(被不完全的事务写入的)在正常操作期间,redo log 可以让查询改变In... 阅读全文
posted @ 2016-06-03 16:07 czcb 阅读(89) 评论(0) 推荐(0) 编辑
摘要:14.2.2 InnoDB Multi-Versioning InnoDB 多版本:InnoDB 是一个多版本的存储引擎: 它保留信息关于改变数据的老版本,为了支持事务功能 比如并发和回滚。这些信息是存储在tablespace 在一个数据结果被称为回滚段(Oracle也有类似的数据结构).Inn... 阅读全文
posted @ 2016-06-03 15:20 czcb 阅读(105) 评论(0) 推荐(0) 编辑
摘要:mysql> explain select * from t100 union all select * from t200;+----+--------------+------------+------+---------------+------+---------+------+----... 阅读全文
posted @ 2016-06-03 14:18 czcb 阅读(290) 评论(0) 推荐(0) 编辑
摘要:mysql> explain select * from t100 union all select * from t200;+----+--------------+------------+------+---------------+------+---------+------+----... 阅读全文
posted @ 2016-06-03 14:18 czcb 阅读(127) 评论(0) 推荐(0) 编辑
摘要:mysql> explain SELECT c.`sn` clientSn,asm.`clientManagerSn`,pry.`productSn`,1 TYPE,pr.`capitalBalance`,pr.`yieldBalance`,pry.`realValueEndDate`,pr.... 阅读全文
posted @ 2016-06-03 14:06 czcb 阅读(96) 评论(0) 推荐(0) 编辑
摘要:mysql> create view v_test as select * from test;Query OK, 0 rows affected (0.15 sec)mysql> desc v_test;+-------+----------+------+-----+---------+--... 阅读全文
posted @ 2016-06-03 14:04 czcb 阅读(151) 评论(0) 推荐(0) 编辑
摘要:mysql> create view v_test as select * from test;Query OK, 0 rows affected (0.15 sec)mysql> desc v_test;+-------+----------+------+-----+---------+--... 阅读全文
posted @ 2016-06-03 14:04 czcb 阅读(126) 评论(0) 推荐(0) 编辑
摘要:jrhdpt01:/root# cat /etc/security/limits.conf * soft nofile 65535 * hard nofile 65535 * soft nproc 65535 * hard nproc 65535 阅读全文
posted @ 2016-06-03 12:03 czcb 阅读(88) 评论(0) 推荐(0) 编辑
摘要:14.2 InnoDB Concepts and Architecture InnoDB 概念和结构体系:14.2.1 MySQL and the ACID Model14.2.2 InnoDB Multi-Versioning14.2.3 InnoDB Redo Log14.2.4 Inn... 阅读全文
posted @ 2016-06-03 11:04 czcb 阅读(79) 评论(0) 推荐(0) 编辑
摘要:14.2 InnoDB Concepts and Architecture InnoDB 概念和结构体系:14.2.1 MySQL and the ACID Model14.2.2 InnoDB Multi-Versioning14.2.3 InnoDB Redo Log14.2.4 Inn... 阅读全文
posted @ 2016-06-03 11:04 czcb 阅读(91) 评论(0) 推荐(0) 编辑
摘要:set global log_bin_trust_function_creators=TRUE;delimiter $$ CREATE DEFINER=`zjzc_app`@`%` FUNCTION `loadTreeByParent`(begin_sn INT) RETURNS varchar... 阅读全文
posted @ 2016-06-02 22:18 czcb 阅读(507) 评论(0) 推荐(0) 编辑
摘要:set global log_bin_trust_function_creators=TRUE;delimiter $$ CREATE DEFINER=`zjzc_app`@`%` FUNCTION `loadTreeByParent`(begin_sn INT) RETURNS varchar... 阅读全文
posted @ 2016-06-02 22:18 czcb 阅读(322) 评论(0) 推荐(0) 编辑
摘要:root 用户创建函数;delimiter $$ CREATE FUNCTION `loadTreeByParent`(begin_sn INT) RETURNS varchar(600) CHARSET utf8BEGIN DECLARE rest VARCHAR(600); DECLAR... 阅读全文
posted @ 2016-06-02 21:41 czcb 阅读(126) 评论(0) 推荐(0) 编辑
摘要:root 用户创建函数;delimiter $$ CREATE FUNCTION `loadTreeByParent`(begin_sn INT) RETURNS varchar(600) CHARSET utf8BEGIN DECLARE rest VARCHAR(600); DECLAR... 阅读全文
posted @ 2016-06-02 21:41 czcb 阅读(126) 评论(0) 推荐(0) 编辑
摘要:14.1.3 Turning Off InnoDB 关掉InnoDB:Oracle 推荐InnoDB 作为首选的存储引擎用于典型的数据库应用,从单用户的wikis到博客,到高端应用把性能推到极限。在MySQL 5.6中,InnoDB是新表的默认存储引擎。如果你不需要使用InnoDB tables... 阅读全文
posted @ 2016-06-02 16:58 czcb 阅读(115) 评论(0) 推荐(0) 编辑
摘要:14.1.3 Turning Off InnoDB 关掉InnoDB:Oracle 推荐InnoDB 作为首选的存储引擎用于典型的数据库应用,从单用户的wikis到博客,到高端应用把性能推到极限。在MySQL 5.6中,InnoDB是新表的默认存储引擎。如果你不需要使用InnoDB tables... 阅读全文
posted @ 2016-06-02 16:58 czcb 阅读(120) 评论(0) 推荐(0) 编辑
摘要:zabbix:/root# java -jar /root/cmdline-jmxclient-0.10.3.jar - 121x:5566 "Catalina:type=Manager,context=/api,host=localhost" maxActive06/02/2016 16:1... 阅读全文
posted @ 2016-06-02 16:21 czcb 阅读(140) 评论(0) 推荐(0) 编辑
摘要:zjdev 正常访问;mysql> explain SELECT temp.* , -> (SELECT COUNT(sn) FROM AssignClientManager WHERE FIND_IN_SET(clientManagerSn,temp.managerSnlist)>0) ... 阅读全文
posted @ 2016-06-02 15:36 czcb 阅读(132) 评论(0) 推荐(0) 编辑
摘要:zjdev 正常访问;mysql> explain SELECT temp.* , -> (SELECT COUNT(sn) FROM AssignClientManager WHERE FIND_IN_SET(clientManagerSn,temp.managerSnlist)>0) ... 阅读全文
posted @ 2016-06-02 15:36 czcb 阅读(113) 评论(0) 推荐(0) 编辑
摘要:mysql> desc AssignClientManager;+-----------------+----------+------+-----+---------+----------------+| Field | Type | Null | Key | De... 阅读全文
posted @ 2016-06-02 15:16 czcb 阅读(119) 评论(0) 推荐(0) 编辑
摘要:mysql> desc AssignClientManager;+-----------------+----------+------+-----+---------+----------------+| Field | Type | Null | Key | De... 阅读全文
posted @ 2016-06-02 15:16 czcb 阅读(123) 评论(0) 推荐(0) 编辑
摘要:14.1.2 Checking InnoDB Availability 检查InnoDB 可用性:确认你的server 是否支持InnoDB,使用 SHOW ENGINES 语句。(默认MySQL的存储引擎是InnoDB,只有非常特别的环境可能不支持) 阅读全文
posted @ 2016-06-02 13:13 czcb 阅读(90) 评论(0) 推荐(0) 编辑
摘要:14.1.2 Checking InnoDB Availability 检查InnoDB 可用性:确认你的server 是否支持InnoDB,使用 SHOW ENGINES 语句。(默认MySQL的存储引擎是InnoDB,只有非常特别的环境可能不支持) 阅读全文
posted @ 2016-06-02 13:13 czcb 阅读(87) 评论(0) 推荐(0) 编辑
摘要:14.1 Introduction to InnoDB14.1.1 InnoDB as the Default MySQL Storage Engine14.1.2 Checking InnoDB Availability14.1.3 Turning Off InnoDBInnoDB 是一种通用... 阅读全文
posted @ 2016-06-02 11:01 czcb 阅读(130) 评论(0) 推荐(0) 编辑
摘要:14.1 Introduction to InnoDB14.1.1 InnoDB as the Default MySQL Storage Engine14.1.2 Checking InnoDB Availability14.1.3 Turning Off InnoDBInnoDB 是一种通用... 阅读全文
posted @ 2016-06-02 11:01 czcb 阅读(142) 评论(0) 推荐(0) 编辑
摘要:double(16,4) 小数点后4位,总共16位小数mysql> select * from test100;+--------------------+| value |+--------------------+| -1.0000 || ... 阅读全文
posted @ 2016-06-02 10:31 czcb 阅读(96) 评论(0) 推荐(0) 编辑
摘要:double(16,4) 小数点后4位,总共16位小数mysql> select * from test100;+--------------------+| value |+--------------------+| -1.0000 || ... 阅读全文
posted @ 2016-06-02 10:31 czcb 阅读(200) 评论(0) 推荐(0) 编辑
摘要:api01:/home/tomcat> cat /etc/hosts127.0.0.1 localhost::1 localhost localhost.localdomain localhost6 localhost6.localdomain612.40.238.78 api0... 阅读全文
posted @ 2016-06-01 20:29 czcb 阅读(114) 评论(0) 推荐(0) 编辑
摘要:api01:/home/tomcat> cat /etc/hosts127.0.0.1 localhost::1 localhost localhost.localdomain localhost6 localhost6.localdomain612.40.238.78 api0... 阅读全文
posted @ 2016-06-01 20:29 czcb 阅读(208) 评论(0) 推荐(0) 编辑
摘要:安装Javagateway如果原来已经安装zabbix,只需要再添加以下zabbix-java# tar zxvf zabbix-2.2.0.tar.gz# cd zabbix-2.2.0# ./configure --enable-java --prefix=/opt/zabbix_java#... 阅读全文
posted @ 2016-06-01 17:05 czcb 阅读(180) 评论(0) 推荐(0) 编辑
摘要:安装Javagateway如果原来已经安装zabbix,只需要再添加以下zabbix-java# tar zxvf zabbix-2.2.0.tar.gz# cd zabbix-2.2.0# ./configure --enable-java --prefix=/opt/zabbix_java#... 阅读全文
posted @ 2016-06-01 17:05 czcb 阅读(150) 评论(0) 推荐(0) 编辑
摘要:tomcat 机器配置;[root@wx03 lib]# pwd/usr/local/apache-tomcat-7.0.55/lib[root@wx03 lib]# ls -ltr *jmx*-rw-r--r-- 1 root root 9533 Jun 1 12:53 catalina-j... 阅读全文
posted @ 2016-06-01 13:34 czcb 阅读(140) 评论(0) 推荐(0) 编辑
摘要:tomcat 机器配置;[root@wx03 lib]# pwd/usr/local/apache-tomcat-7.0.55/lib[root@wx03 lib]# ls -ltr *jmx*-rw-r--r-- 1 root root 9533 Jun 1 12:53 catalina-j... 阅读全文
posted @ 2016-06-01 13:34 czcb 阅读(130) 评论(0) 推荐(0) 编辑