-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #27
- Loading branch information
Showing
35 changed files
with
3,358 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
<!doctype html> | ||
<html ⚡ lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | ||
<style amp-boilerplate> body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}} </style> <noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none} </style></noscript> | ||
<script async src="https://cdn.ampproject.org/v0.js"></script> | ||
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script> | ||
<script async custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-0.1.js"></script> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300i,600"> | ||
<style amp-custom> | ||
*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html,body{margin:0;padding:0}html{font-family:"Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;font-size:18px;font-weight:300;line-height:1.6}@media (min-width: 38em){html{font-size:20px}}body{color:#515151;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}a{color:#268bd2;text-decoration:none}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:600;line-height:1.1;color:#333;letter-spacing:-.02rem}h1{font-size:2rem}h2{font-size:1.5rem}h3{font-size:1.2rem}h4,h5,h6{font-size:1rem}p{margin:0 0 1rem}ul,ol,dl{margin-top:0;margin-bottom:1rem}dt{font-weight:bold}dd{margin-bottom:.5rem}ul{list-style:inside circle;padding-left:0}ul li{margin-bottom:.25rem}ul ul,ul ol{margin-top:.25rem;margin-bottom:.5rem}ol{list-style:inside decimal;padding-left:0}ol li{margin-bottom:.25rem}ol ul,ol ol{margin-top:.25rem;margin-bottom:.5rem}p+h1,p+h2,p+h3,ul+h1,ul+h2,ul+h3,ol+h1,ol+h2,ol+h3{margin-top:1.5rem}hr{border:0;border-top:.5px solid #eee;border-bottom:.5px solid #eee;margin:1.5rem auto}strong{color:#333;font-weight:600}abbr{font-size:85%;font-weight:bold;color:#555;text-transform:uppercase}abbr[title]{cursor:help;border-bottom:1px dotted #e5e5e5}blockquote{padding:0 0 0 1.5rem;margin:0 2rem 1rem 0;color:#999;border-left:.5rem solid #e5e5e5}blockquote p:last-child{margin-bottom:0}code,pre{font-family:Menlo, Monaco, "Courier New", monospace}code{padding:.25em .5em;font-size:85%;color:#bf616a;background-color:#f9f9f9;border-radius:3px}pre{display:block;margin-top:0;margin-bottom:1rem;padding:1rem;font-size:.8rem;line-height:1.4;white-space:pre;white-space:pre-wrap;word-break:break-all;background-color:#f5f5f5}pre code{padding:0;font-size:100%;color:inherit;background-color:transparent}figure{margin:1rem 0px}.highlight{margin-bottom:1rem;border-radius:4px}.highlight pre{margin-bottom:0}img{display:block;max-width:100%;margin:0 0 1rem;border-radius:5px}table{margin-bottom:1rem;width:100%;border:1px solid #e5e5e5;border-collapse:collapse}td,th{padding:.25rem .5rem;border:1px solid #e5e5e5}tbody tr:nth-child(odd) td,tbody tr:nth-child(odd) th{background-color:#f9f9f9}.lead{font-size:1.25rem}.container{max-width:38rem;padding:2rem 1.5rem;margin-left:auto;margin-right:auto}@media (min-width: 38rem){.container{padding:5rem 1rem}}.masthead-title{font-weight:300}.masthead-title a{color:#333}.masthead-title a:hover,.masthead-title a:focus{text-decoration:none}.masthead-title span{color:#ddd}.masthead-title--small{margin-bottom:.75rem;font-size:.75rem;font-weight:600;text-transform:uppercase}.masthead-title--small a{color:#333}.masthead-title--small a:hover,.masthead-title--small a:focus{text-decoration:none}.masthead .masthead-nav{margin-bottom:2rem}.masthead .masthead-nav a{color:#aaa;font-weight:300;text-transform:lowercase;-webkit-transition:all .2s ease;-moz-transition:all .2s ease;transition:all .2s ease}.masthead .masthead-nav a:hover,.masthead .masthead-nav a:focus{color:#333;text-decoration:none}.masthead .masthead-nav a+a{margin-left:.25rem}.page-title{margin-bottom:2rem}.post-title{margin-bottom:.25rem}.post-meta{margin-bottom:1.0rem;font-size:.75rem;text-transform:uppercase}.post-date{margin-bottom:.25rem}.post-body{margin-bottom:1.5rem}.tags{list-style:none;margin:0;overflow:hidden;padding:0}.tags li{float:left}.tag{background:#f5f5f5;border-radius:3px 0 0 3px;color:#888;display:inline-block;height:20px;line-height:20px;padding:0 20px 0 23px;position:relative;margin:0 10px 10px 0;text-decoration:none;-webkit-transition:color 0.2s}.tag::before{background:#fff;border-radius:10px;box-shadow:inset 0 1px rgba(0,0,0,0.25);content:'';height:6px;left:10px;position:absolute;width:6px;top:7px}.tag::after{background:#fff;border-bottom:10px solid transparent;border-left:8px solid #eee;border-top:10px solid transparent;content:'';position:absolute;right:0;top:0}.tag:hover{background-color:DodgerBlue;color:white}.tag:hover::after{border-left-color:DodgerBlue}.list-post-title{margin-bottom:0}.list-post-title a{color:#333}.list-post-title a:hover,.list-post-title a:focus{text-decoration:none}.list-post-date{margin-bottom:1rem;font-size:.75rem;text-transform:uppercase}.projects-list a{color:#333}.highlight .hll{background-color:#ffc}.highlight .c{color:#999988;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .k{color:#000000;font-weight:bold}.highlight .o{color:#000000;font-weight:bold}.highlight .cm{color:#999988;font-style:italic}.highlight .cp{color:#999999;font-weight:bold;font-style:italic}.highlight .c1{color:#999988;font-style:italic}.highlight .cs{color:#999999;font-weight:bold;font-style:italic}.highlight .gd{color:#000000;background-color:#fdd}.highlight .ge{color:#000000;font-style:italic}.highlight .gr{color:#a00}.highlight .gh{color:#999}.highlight .gi{color:#000000;background-color:#dfd}.highlight .go{color:#888}.highlight .gp{color:#555}.highlight .gs{font-weight:bold}.highlight .gu{color:#aaa}.highlight .gt{color:#a00}.highlight .kc{color:#000000;font-weight:bold}.highlight .kd{color:#000000;font-weight:bold}.highlight .kn{color:#000000;font-weight:bold}.highlight .kp{color:#000000;font-weight:bold}.highlight .kr{color:#000000;font-weight:bold}.highlight .kt{color:#445588;font-weight:bold}.highlight .m{color:#099}.highlight .s{color:#d01040}.highlight .na{color:teal}.highlight .nb{color:#0086B3}.highlight .nc{color:#445588;font-weight:bold}.highlight .no{color:teal}.highlight .nd{color:#3c5d5d;font-weight:bold}.highlight .ni{color:purple}.highlight .ne{color:#990000;font-weight:bold}.highlight .nf{color:#990000;font-weight:bold}.highlight .nl{color:#990000;font-weight:bold}.highlight .nn{color:#555}.highlight .nt{color:navy}.highlight .nv{color:teal}.highlight .ow{color:#000000;font-weight:bold}.highlight .w{color:#bbb}.highlight .mf{color:#099}.highlight .mh{color:#099}.highlight .mi{color:#099}.highlight .mo{color:#099}.highlight .sb{color:#d01040}.highlight .sc{color:#d01040}.highlight .sd{color:#d01040}.highlight .s2{color:#d01040}.highlight .se{color:#d01040}.highlight .sh{color:#d01040}.highlight .si{color:#d01040}.highlight .sx{color:#d01040}.highlight .sr{color:#009926}.highlight .s1{color:#d01040}.highlight .ss{color:#990073}.highlight .bp{color:#999}.highlight .vc{color:teal}.highlight .vg{color:teal}.highlight .vi{color:teal}.highlight .il{color:#099} | ||
|
||
</style> | ||
<!-- Begin Jekyll SEO tag v2.0.0 --> | ||
<title>Filter MySQL processlist - Toshimaru’s Blog</title> | ||
<meta property="og:title" content="Filter MySQL processlist" /> | ||
<meta name="description" content="You can see MySQL processes by show processlist." /> | ||
<meta property="og:description" content="You can see MySQL processes by show processlist." /> | ||
<link rel="canonical" href="http://blog.toshima.ru/2016/01/05/mysql-processlist-filter.html" /> | ||
<meta property="og:url" content="http://blog.toshima.ru/2016/01/05/mysql-processlist-filter.html" /> | ||
<meta property="og:site_name" content="Toshimaru’s Blog" /> | ||
<meta property="og:type" content="article" /> | ||
<meta property="article:published_time" content="2016-01-05T00:00:00+09:00" /> | ||
<meta name="twitter:card" content="summary" /> | ||
<meta name="twitter:site" content="@toshimaru_e" /> | ||
<meta name="twitter:creator" content="@toshimaru_e" /> | ||
<script type="application/ld+json"> | ||
{ | ||
"@context": "http://schema.org", | ||
"@type": "BlogPosting", | ||
"headline": "Filter MySQL processlist", | ||
"datePublished": "2016-01-05T00:00:00+09:00", | ||
"description": "You can see MySQL processes by show processlist.", | ||
"url": "http://blog.toshima.ru/2016/01/05/mysql-processlist-filter.html" | ||
} | ||
</script> | ||
<!-- End Jekyll SEO tag --> | ||
</head> | ||
<body> | ||
<amp-analytics type="googleanalytics" id="analytics1"> | ||
<script type="application/json"> | ||
{ | ||
"vars": { | ||
"account": "UA-78470160-1" | ||
}, | ||
"triggers": { | ||
"trackPageview": { | ||
"on": "visible", | ||
"request": "pageview" | ||
} | ||
} | ||
} | ||
</script> | ||
</amp-analytics> | ||
|
||
<div class="container"> | ||
<header class="masthead"> | ||
<h1 class="masthead-title--small"><a href="/">Toshimaru's Blog</a></h1> | ||
</header> | ||
<div class="content post"> | ||
<h1 class="post-title">Filter MySQL processlist</h1> | ||
<div class="post-meta"> | ||
<div class="post-date"> | ||
<time>05 Jan 2016</time> | ||
</div> | ||
<div class="post-tags"> | ||
<ul class="tags"> | ||
|
||
<li><a href="/tag/mysql" class="tag">mysql</a></li> | ||
|
||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="post-body"> | ||
<p>You can see MySQL processes by <code class="highlighter-rouge">show processlist</code>.</p> | ||
|
||
<div class="language-sql highlighter-rouge"><pre class="highlight"><code><span class="k">show</span> <span class="n">processlist</span><span class="p">;</span> | ||
</code></pre> | ||
</div> | ||
|
||
<p>But, it can’t be filtered. If you’d like to retrieve processes like usual SQL syntax, it can be replaced with:</p> | ||
|
||
<div class="language-sql highlighter-rouge"><pre class="highlight"><code><span class="k">SELECT</span> <span class="o">*</span> <span class="k">FROM</span> <span class="n">INFORMATION_SCHEMA</span><span class="p">.</span><span class="n">PROCESSLIST</span><span class="p">;</span> | ||
</code></pre> | ||
</div> | ||
|
||
<p>Now, you can filter process with <code class="highlighter-rouge">WHERE</code> clause.</p> | ||
|
||
<div class="language-sql highlighter-rouge"><pre class="highlight"><code><span class="k">SELECT</span> <span class="o">*</span> <span class="k">FROM</span> <span class="n">INFORMATION_SCHEMA</span><span class="p">.</span><span class="n">PROCESSLIST</span> | ||
<span class="k">WHERE</span> <span class="n">DB</span> <span class="o">=</span> <span class="s1">'development'</span> <span class="k">AND</span> <span class="k">USER</span> <span class="o">=</span> <span class="s1">'myuser'</span><span class="p">;</span> | ||
</code></pre> | ||
</div> | ||
|
||
<h2 id="see-also">See also</h2> | ||
<ul> | ||
<li><a href="http://stackoverflow.com/questions/929612/how-to-customize-show-processlist-in-mysql">how to customize <code class="highlighter-rouge">show processlist</code> in mysql? - Stack Overflow</a></li> | ||
</ul> | ||
|
||
</div> | ||
|
||
<div class="social-share"> | ||
<amp-social-share type="twitter"></amp-social-share> | ||
<amp-social-share type="facebook"></amp-social-share> | ||
<amp-social-share type="gplus"></amp-social-share> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.