More SSH/Command Line MySQL commands

I noticed that my previous post with basic MySQL SSH commands was relatively popular and I’ve been meaning to save some of the recent ones I’ve been using before I forget them, so…

show full processlist;

This shows all the processes (queries) running on the server at the moment you run it. Helpful if the server is running slow to see which queries might be causing the slowness.

show status like ‘qcache%’;

This shows several variables related to your MySQL query cache (see below). Important to note are the following:

  • Qcache_free_memory – how much memory you have available for caching
  • Qcache_inserts - if this number is larger than your Qcache_hits, it probably means your MySQL acche is not being used properly
+————————-+———+
| Variable_name           | Value   |
+————————-+———+
| Qcache_free_blocks      | 798     |
| Qcache_free_memory      | 4161824 |
| Qcache_hits             | 9260760 |
| Qcache_inserts          | 4366152 |
| Qcache_lowmem_prunes    | 595048  |
| Qcache_not_cached       | 304800  |
| Qcache_queries_in_cache | 7729    |
| Qcache_total_blocks     | 40040   |
+————————-+———+

+————————————-+———+
| Variable_name                        | Value   |
+————————————-+———+
| Qcache_free_blocks              | 798     |
| Qcache_free_memory           | 4161824 |
| Qcache_hits                            | 9260760 |
| Qcache_inserts                      | 4366152 |
| Qcache_lowmem_prunes    | 595048  |
| Qcache_not_cached              | 304800  |
| Qcache_queries_in_cache  | 7729    |
| Qcache_total_blocks             | 40040   |
+————————————-+———+

Hope that helps someone.

19 Responses to “More SSH/Command Line MySQL commands”

  1. Yavar Assil Says:

    Hello,

    We are interested in becoming a sponsor on your home page. Can you kindly let em know what types of advertising options are available?

    Thanks,

    Yavar

  2. arun kumar Says:

    looks like a real magazine

  3. rajguru Says:

    Hi,

    Really this site is very helpful for the web designers and this post solves my problem .

    Thanks.

  4. fx15 Says:

    thanx for post

  5. Amit Says:

    thanks for your info, very good work.

  6. webdesigner Goa Says:

    Hello, you have written a very informative article. Thank you. By the way, I invite you to share your knowledge with more people in my website – http://www.eiksys.net/say

    Thank you
    With regards,

  7. jayesh Says:

    Hello, you have written a very informative article.

    Thank you.

  8. Boxing Gloves Manufacturer Says:

    We are interested in becoming a sponsor on your home page. Can you kindly let em know what types of advertising options are available?

    Regards,
    zubair mehar,

    Happy new year :)

  9. tiensdirect Says:

    I think it look like a magazine in itself.

  10. natasha Says:

    do you know how to change content based on location of the computer or ip address??

    alternativeenergyblog.net

  11. clarissa Says:

    i even know sql its used in RAC installation in oracle ssh has wider implementation

    greenenergyequipment.org

  12. Austin Divorce Lawyer Says:

    I’m still new to MYSQL and I’ve been looking to some of your post for tips, just want to say that you doing doing a great job in this site thanks and keep it up.

  13. halil Says:

    very nice sharing

  14. http://www.sahryat.com Says:

    صور دردشه صوتيه شات صوتي دردشه منتديات صور دليل دردشات

  15. Joomla Web Developers Says:

    I am new to mysql database find the blog while go ogling,thanks for the tips for beginners like me..

  16. Seviyeli Sohbet Says:


    Samimi Sohbet , Chat Odaları , Seviyeli Sohbet , Chat , Sohbet Odalari, Sohbet
    Odaları, Chat Odalari, Sohbet Yap , Chat Yap Kelebek Sohbet, Mirc Sohbet,
    kelebek chat,

  17. Impuptell Says:

    listbox en vb 6concierto de la academia

  18. Gebze Çelik Kapı Says:

    Nice Sharing

  19. Regülatör Says:

    Thanks for sharing

Leave a Reply

This entry was posted on Friday, October 9th, 2009 at 8:13 pm and is filed under Web Development. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.