• 
    

      <address id="upfr9"><pre id="upfr9"><strike id="upfr9"></strike></pre></address>
      1. <address id="upfr9"><tr id="upfr9"></tr></address><dl id="upfr9"></dl>

        使用mysql-utilities管理工具集的方法-創(chuàng)新互聯(lián)

        不知道大家之前對類似使用mysql-utilities管理工具集的方法的文章有無了解,今天我在這里給大家再簡單的講講。感興趣的話就一起來看看正文部分吧,相信看完使用mysql-utilities管理工具集的方法你一定會有所收獲的。

        創(chuàng)新互聯(lián)公司專注于滎經(jīng)網(wǎng)站建設(shè)服務(wù)及定制,我們擁有豐富的企業(yè)做網(wǎng)站經(jīng)驗。 熱誠為您提供滎經(jīng)營銷型網(wǎng)站建設(shè),滎經(jīng)網(wǎng)站制作、滎經(jīng)網(wǎng)頁設(shè)計、滎經(jīng)網(wǎng)站官網(wǎng)定制、微信平臺小程序開發(fā)服務(wù),打造滎經(jīng)網(wǎng)絡(luò)公司原創(chuàng)品牌,更為您提供滎經(jīng)網(wǎng)站排名全網(wǎng)營銷落地服務(wù)。

        mysql-utilities 管理工具集的使用:

        更詳細的參數(shù) ,參照官方文檔: https://dev.mysql.com/doc/mysql-utilities/

        直接去MySQL官網(wǎng)下載rpm包安裝即可。如果安裝過程中提示mysql-connector-python版本過低,則到mysql官網(wǎng)去下載個最新的包裝上即可。

            社區(qū)版用不到或者不常用的功能,筆記這里就不列出來了。

        mysqldbcopy  克隆整個庫

        例:mysqldbcopy --source=root:'123456'@localhost:3306:/tmp/mysql.sock --destination=root:'123456'@localhost:3306:/tmp/mysql.sock db:db_clone

        mysqldiskusage 統(tǒng)計表空間、各種日志文件占用的體積

        例:mysqldiskusage --server=root:'123456'@localhost:3306:/tmp/mysql.sock --all -v

        mysqlfrm  在故障的時候根據(jù)frm提取某個表結(jié)構(gòu) (不包括外鍵約束、自增長序列編號)

        例: mysqlfrm --basedir=/usr/local/mysql /data/hellodb/classes.frm --port=3310 --user=root # 注意這個端口是隨便起的

        mysqlindexcheck 找出某個庫下的冗余索引

        例:mysqlindexcheck --server=root:'123456'@localhost:3306:/tmp/mysql.sock grafana -f vertical -r -d --stats

        mysqlprocgrep 找出符合某些條件的用戶連接

        參數(shù):

         -G, --basic-regexp, --regexp

                    use 'REGEXP' operator to match pattern. Default is to

                    use 'LIKE'.

         -Q, --print-sql, --sql

                    print the statement instead of sending it to the

                    server. If a kill option is submitted, a procedure

                    will be generated containing the code for executing

                    the kill.

         --sql-body      only print the body of the procedure.

         --kill-connection   kill all matching connections.

         --kill-query     kill query for all matching processes.

         --print        print all matching processes.

         -f FORMAT, --format=FORMAT

                    display the output in either grid (default), tab, csv,

                    or vertical format

         -v, --verbose     control how much information is displayed. e.g., -v =

                    verbose, -vv = more verbose, -vvv = debug

         --match-id=PATTERN  match the 'ID' column of the PROCESSLIST table.

         --match-user=PATTERN match the 'USER' column of the PROCESSLIST table.

         --match-host=PATTERN match the 'HOST' column of the PROCESSLIST table.

         --match-db=PATTERN  match the 'DB' column of the PROCESSLIST table.

         --match-command=PATTERN

                    match the 'COMMAND' column of the PROCESSLIST table.

         --match-info=PATTERN match the 'INFO' column of the PROCESSLIST table.

         --match-state=PATTERN

                    match the 'STATE' column of the PROCESSLIST table.

         --age=AGE       show only processes that have been in the current

                    state more than a given time.

        例:# kill掉sleep狀態(tài),且處于sleep超過90秒的用戶連接:

        mysqlprocgrep --server=root:'123456'@localhost:3306:/tmp/mysql.sock -f vertical --match-command='Sleep' --age=90s --kill-connection

        mysqlrpladmin

        關(guān)于這個工具,可以參考蘭春大神的博文 https://yq.aliyun.com/articles/59234#

        mysqlserverinfo  列出數(shù)據(jù)庫的明細情況(-d 顯示各個default值, --format=vertical 列式顯示)

        例:mysqlserverinfo --server=root:'123456'@localhost:3306:/tmp/mysql.sock  -d --format=vertical

        mysqlbinlogpurge  清理過期的binlog文件

        例:mysqlbinlogpurge --server=root:'123456'@localhost:3306:/tmp/mysql.sock

        看完使用mysql-utilities管理工具集的方法這篇文章,大家覺得怎么樣?如果想要了解更多相關(guān),可以繼續(xù)關(guān)注我們的行業(yè)資訊板塊。

        另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。

        網(wǎng)頁標題:使用mysql-utilities管理工具集的方法-創(chuàng)新互聯(lián)
        網(wǎng)站路徑:http://www.jbt999.com/article18/dchhgp.html

        成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供企業(yè)網(wǎng)站制作、網(wǎng)站設(shè)計、做網(wǎng)站標簽優(yōu)化、外貿(mào)網(wǎng)站建設(shè)、ChatGPT

        廣告

        聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:[email protected]。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

        成都定制網(wǎng)站網(wǎng)頁設(shè)計

      2. 
        

          <address id="upfr9"><pre id="upfr9"><strike id="upfr9"></strike></pre></address>
          1. <address id="upfr9"><tr id="upfr9"></tr></address><dl id="upfr9"></dl>
            日本一区二区三区视频免费看 | 国产无码在线看 | 日韩xxxxxxxxx | 中文字幕在线观看二区 | 国产高清无码免费视频 | 亚洲欧美另类在线视频 | 天天色天天日天天射 | 乱伦大香蕉~ | 操逼网站进入国产 | 丁香五月久久 |