MySQL解決sending data的方法

來源:互聯網
上載者:User

今天在用MySQL的show processlist;語句查看的時候,發現有好幾個sending data出現,都是查詢語句引起的。

網上查了一下,說是有可能由於key_buffer設定引起的,結果就修改了這個設定,重啟MySQL服務之後發現無效。

之後發現sending data的語句都是select語句,於是懷疑和select有關,檢查了一下發現是查詢的欄位沒有建立索引,於是就建立了個索引,解決了這個問題。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.