實(shí)用性
員工經(jīng)過(guò)長(zhǎng)期磨合與沉淀,具備了協(xié)作精神,得以通過(guò)團(tuán)隊(duì)的力量開(kāi)發(fā)出優(yōu)質(zhì)的產(chǎn)品。創(chuàng)新互聯(lián)堅(jiān)持“專注、創(chuàng)新、易用”的產(chǎn)品理念,因?yàn)椤皩W⑺詫I(yè)、創(chuàng)新互聯(lián)網(wǎng)站所以易用所以簡(jiǎn)單”。公司專注于為企業(yè)提供成都網(wǎng)站設(shè)計(jì)、做網(wǎng)站、成都外貿(mào)網(wǎng)站建設(shè)公司、微信公眾號(hào)開(kāi)發(fā)、電商網(wǎng)站開(kāi)發(fā),重慶小程序開(kāi)發(fā),軟件定制設(shè)計(jì)等一站式互聯(lián)網(wǎng)企業(yè)服務(wù)。
在運(yùn)維工作中,經(jīng)常會(huì)遇到需要kill 掉某個(gè)用戶的時(shí)候,MySQL 沒(méi)有直接Kill user 的功能,
但是mariadb 早就有這個(gè)功能了,這個(gè)真的太貼心了,實(shí)用價(jià)值極高。
2.趕緊干起來(lái)吧,狠敲命令看結(jié)果
MariaDB [(none)]> select version()
-> ;
+-----------------+
| version() |
+-----------------+
| 10.1.20-MariaDB |
+-----------------+
1 row in set (0.00 sec)
MariaDB [(none)]> show processlist;
+----+--------+--------------------+------+---------+------+-------+------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+----+--------+--------------------+------+---------+------+-------+------------------+----------+
| 8 | root | localhost | NULL | Query | 0 | init | show processlist | 0.000 |
| 12 | roidba | 192.168.1.92:56950 | NULL | Sleep | 17 | | NULL | 0.000 |
+----+--------+--------------------+------+---------+------+-------+------------------+----------+
2 rows in set (0.00 sec)
MariaDB [(none)]> kill user roidba;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> show processlist;
+----+------+-----------+------+---------+------+-------+------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+----+------+-----------+------+---------+------+-------+------------------+----------+
| 8 | root | localhost | NULL | Query | 0 | init | show processlist | 0.000 |
+----+------+-----------+------+---------+------+-------+------------------+----------+
1 row in set (0.00 sec)
MariaDB [(none)]>
3.官網(wǎng)連接
https://mariadb.com/kb/en/mariadb/data-manipulation-kill-connection-query/
如果我們要去選擇一款數(shù)據(jù)庫(kù),那么我們一定要對(duì)選擇的數(shù)據(jù)庫(kù)有深入的了解和測(cè)試。搞技術(shù)最
反感的就是只動(dòng)嘴,不動(dòng)手的人!!
每天敲敲更快樂(lè)!
當(dāng)前文章:mariadb實(shí)用功能1killuserxxx
本文地址:http://aaarwkj.com/article42/igjehc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制開(kāi)發(fā)、網(wǎng)站建設(shè)、App設(shè)計(jì)、網(wǎng)站導(dǎo)航、自適應(yīng)網(wǎng)站、面包屑導(dǎo)航
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
營(yíng)銷型網(wǎng)站建設(shè)知識(shí)