上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: HTTP报文 http请求报文 http响应报文 http请求首部字段 可通知服务器,用户代理能够处理的媒体类型及媒体类型的相对优先级、 Accept:text/html,text/palin;q=0.9,text/css;q=0.8 q = 表示权重值,用分号进行分割,权重值q的范围为0~1(精确 阅读全文
posted @ 2017-06-29 22:37 心碎whn 阅读(191) 评论(0) 推荐(0) 编辑
摘要: procedure analyse() 优化表的数据类型 使用procedure analyse()对当前应用的表进行分析 select * from table_name procedure analyse(); select * from table_name procedure analyse 阅读全文
posted @ 2017-06-29 22:04 心碎whn 阅读(172) 评论(0) 推荐(0) 编辑
摘要: use index 在查询语句中表名的后面,添加use index来提供希望mysql去参考的索引列表,就可以让mysql不再考虑其他可用的索引 explain select * from rental use index(idx_rental_date)\G; ignore index 如果用户只 阅读全文
posted @ 2017-06-29 17:29 心碎whn 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,mysql对所有的gruop by col1,col2...的字段进行排序。如果查询包含group by但用户想要避免排序结果的消耗,则可以指定order by null禁止排序。 explain select payment_date,sum(amount) from payment 阅读全文
posted @ 2017-06-29 16:25 心碎whn 阅读(186) 评论(0) 推荐(0) 编辑
摘要: ifconfig 可以查看IP地址与子网掩码 ifdown(禁用网卡) ifdown 网络设备名 ifdown eth0 ifup (启动网卡) ifup 网络设备名 ifup eth0 netstat netstat 用于查看网络状态 常用组合: netstat -tuln netstat -an 阅读全文
posted @ 2017-06-29 00:47 心碎whn 阅读(193) 评论(0) 推荐(0) 编辑
摘要: mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip 对于 or 语句,如果要利用索引,则 or 之间的每个条件都必须有索引 rental 表索引情况 or查询的前后都有索引列 (使用到了索引) explain select * from 阅读全文
posted @ 2017-06-29 00:16 心碎whn 阅读(598) 评论(0) 推荐(0) 编辑
摘要: mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip mysql 中排序方式 有序索引顺序扫描直接返回有序数据 explain select customer_id from customer order by store_id\G; 这 阅读全文
posted @ 2017-06-28 21:08 心碎whn 阅读(395) 评论(0) 推荐(0) 编辑
摘要: mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip 以%开头的LIKE查询不能够利用B-tree索引 explain select * from actor where last_name like '%NI%'\G; explain 阅读全文
posted @ 2017-06-28 19:18 心碎whn 阅读(22753) 评论(0) 推荐(0) 编辑
摘要: mysql 演示数据库:http://downloads.mysql.com/docs/sakila-db.zip 匹配全值 explain select * from rental where rental_date='2005-05-25 17:22:10' and inventory_id=3 阅读全文
posted @ 2017-06-28 11:24 心碎whn 阅读(954) 评论(0) 推荐(1) 编辑
摘要: ps(查看系统下所有进程) ps aux 显示系统中所有的进程,使用BSD操作系统格式(aux 前面没有-) ps -le 显示系统中所有的进程,使用linux的标准格式 ps aux 输出说明 pstree(查看进程树) pstree top 在top命令的交互模式中可以执行的命令 top输出内容 阅读全文
posted @ 2017-06-28 01:24 心碎whn 阅读(270) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页