Mysql flush语法
flush_option 可以是下列任何东西:FLUSH HOSTS &n...
MySQL选用可重复读之前一定要想到的事情
<div class="Blog_tit4 Blog_tit5" style="border-bottom-width:0px;padding:0px 0px 11px;color:#565656;font-family:宋体, Arial;line-height:12px;white-space:normal;background-color:#FFFFFF;"> <a href="http://blog.itpub.net/29254281/viewspace-1398273/" style="text-decoration:none;color:#9C2423;font...
MySQL两种不完全恢复的方法
<div class="Blog_tit4 Blog_tit5" style="border-bottom-width:0px;padding:0px 0px 11px;color:#565656;font-family:宋体, Arial;line-height:12px;white-space:normal;background-color:#FFFFFF;"> <a href="http://blog.itpub.net/29254281/viewspace-1734271/" style="text-decoration:none;color:#9C2423;font...
mysql的order by和group by
<div class="Blog_tit4 Blog_tit5" style="border-bottom-width:0px;padding:0px 0px 11px;color:#565656;font-family:宋体, Arial;line-height:12px;white-space:normal;background-color:#FFFFFF;"><a href="http://blog.itpub.net/15480802/viewspace-757562/" style="text-decoration:none;color:#9C2423;font-family...
mysql较为重要的状态变量
<div class="Blog_tit4 Blog_tit5" style="border-bottom-width:0px;padding:0px 0px 11px;color:#565656;font-family:宋体, Arial;line-height:12px;white-space:normal;background-color:#FFFFFF;"><a href="http://blog.itpub.net/15480802/viewspace-764968/" style="color:#9C2423;font-family:微软雅黑, 黑体, Verd...
MYSQL压力测试脚本
<p style="margin-top:0px;margin-bottom:21px;border:0px;font-family:'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti;font-size:14px;font-stretch:inherit;line-height:21px;vertical-align:baseline;color:#413C36;white-space:normal;background-color:#FFFFFF;">#创建表DEPT</p><p style="margin-top:0px...
优化MySQL的21个建议
Innodb IO优化-配置优化
<div class="entry-header" style="box-sizing:inherit;display:inline;margin-bottom:2px;color:#333333;font-family:Arial, sans-serif;font-size:13px;line-height:19.5px;white-space:normal;"><h2 class="entry-title" style="box-sizing:inherit;border:none;margin:0px;outline:0px;padding:0px;list-style:none;v...
MySQL数据库负载很高连接数很多怎么处理
<div class="entry-header" style="box-sizing:inherit;display:inline;margin-bottom:2px;color:#333333;font-family:Arial, sans-serif;font-size:13px;line-height:19.5px;white-space:normal;"><h2 class="entry-title" style="box-sizing:inherit;border:none;margin:0px;outline:0px;padding:0px;list-style:none;v...
MySQL线程池测试
Mongodb与Mysql SQL操作对比
<div style="font-family:Arial;font-size:14px;line-height:26px;white-space:normal;background-color:#FFFFFF;"> mongodb以BSON结构(二进制)进行存储,对海量数据存储有着很明显的优势。下面是Mongodb与Mysql的操作命令的对比。</div><div style="font-family:Arial;font-size:14px;line-height:26px;white-s...
Linux shell
<br />删除第2行:<br />sed 2d /tmp/psql_conn.txt
Mongodb3.0.4滚动升级到3.0.5
环境:PRIMARY:SECONDARY:ARBITER环境检查:查看哪些从库rs.status()查看Replica set的配置rs.conf()查看活跃节点db.isMaster()步骤:升级
Mysql 索引使用
<p>把dept表中,我增加几个部门:</p><p> </p><p>alter table dept add index my_ind(dname,loc); // dname 左边的列,loc就是右边的列</p><p> </p><p>说明,如果我们的表中有复合索引(索引作用在多列上), 此时我们注意:</p><p style="margin-left:18pt;">1, 对于创建的多列...
Mysql锁
nnoDB行锁实现方式InnoDB行锁是通过给索引上的索引项加锁来实现的,这一点MySQL与Oracle不同,后者是通过在数据块中对相应数据行加锁来实现的。InnoDB这种行锁实现特点意味着:只有通过索引条件检索数据,InnoDB才使用行级锁,否则,InnoDB将使用表锁!在实际应用中,要特别注意InnoDB行锁的这一特性...
mysql InnoDB锁等待的查看及分析
<div class="Blog_tit4 Blog_tit5" style="border-bottom-width:0px;padding:0px 0px 11px;color:#565656;font-family:宋体, Arial;line-height:12px;white-space:normal;background-color:#FFFFFF;"> <a href="http://blog.itpub.net/12679300/viewspace-1420031/" style="text-decoration:none;color:#9C2423;font...
MySQL数据库中QueryCache锁模型
<h1 style="margin:0px;padding:0px;text-align:center;line-height:40px;white-space:normal;">MySQL数据库中QueryCache锁模型</h1><div class="text" style="margin:0px;padding:0px 20px;white-space:normal;"><p style="margin-top:0px;margin-bottom:0px;line-height:30px;"><br /></p><p style="margin-...
Mysql线程连接技术
<br /><img src="http://img.my.csdn.net/uploads/201212/04/1354633968_4085.jpg" /><p style="margin-top:0px;margin-bottom:0px;font-family:Arial;font-size:14px;line-height:26px;white-space:normal;background-color:#FFFFFF;">Mysql支持单线程和多线程两种连接线程模式,如果单线程,则在同一时刻,只能有一个...
mysql常见优化
<div class="postTitle" style="padding-left:3px;padding-bottom:3px;padding-top:3px;border-bottom-color:#DCDCDC;border-bottom-width:1px;border-bottom-style:solid;line-height:normal;white-space:normal;"><a id="cb_post_title_url" href="http://www.cnblogs.com/ggjucheng/archive/2012/11/07/2758058.html"...
Mysql group by ,order by
<p style="line-height:28px;margin-top:0px;margin-bottom:10px;white-space:normal;">MySQL 无法根据索引的顺序来帮助 GROUP BY 的实现,只能先通过索引范围扫描得到需要的数据,将数据存入临时表,然后再进行排序和分组操作来完成 GROUP BY。</p><p style="line-height:28px;margin-top:0px;margin-bottom:10px;whit...