Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 10 of 10

This is a discussion on Optimizing MySQL - How Often in the Open Discussion & Chit-chat forum
I check my sql db, and optimize it, at least once a day, sometimes more... I was just doing it, and wondered, how often do ...

  1. #1
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775

    Question Optimizing MySQL - How Often

    I check my sql db, and optimize it, at least once a day, sometimes more...

    I was just doing it, and wondered, how often do YOU optimize MySQL?
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  2. #2
    || $name ne 'R.Stiltskin'
    Join Date
    Jun 2003
    Location
    Tejas
    Posts
    2,438
    Weekly.

  3. #3
    Like a star... Julian Muñoz's Avatar
    Join Date
    Oct 2002
    Location
    Colombia
    Posts
    1,399
    When I have the time.... :S My sql server's been running for 31 days, over 55 million queries has been sent to the server and I have an overall of 20 queries per second... But I don't optimize the database that often... I backup my database daily however...
    Julian D. Muñoz - LANeros.com

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Rarely actually. Lot of work to go by every table for that stuff. Also a bit of an "if it isn't broken don't try to fix it" feeling about it.

    I assume you've got that all scripted then, Vin?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  5. #5
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Gwaihir
    I assume you've got that all scripted then, Vin?
    If you're asking, "Is the optimization process scripted?” the answer is yes 'n' no. I can optimize my db using a script on my site, but I prefer to use phpMyAdmin instead.

    The 'problem' with PHP-Nuke, if you want to call it a 'problem', is it hammers the sql server pretty hard, and every once in a while the server hiccups. When the server collects enough unclosed queries, it says, "Screw you!” hangs and/or starts cross-linking (corrupting) tables, et cetera...

    To be fair, I doubt that PHP-Nuke is totally at fault here. For instance, it could be a bad RSS feed, or something else that starts the ball rolling. It'll go for months with no problem. However, a hung sql server is disastrous to PHP-Nuke. Nuke will not run (exclamation point) without a properly functioning MySQL server, so I'm a little paranoid about letting things get carried away. Accordingly, I probably check/optimize more than necessary.
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  6. #6
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Julian Muñoz
    When I have the time.... :S My sql server's been running for 31 days, over 55 million queries has been sent to the server and I have an overall of 20 queries per second...
    My runtime: 9 days, 40 million queries total, 46 queries per second...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  7. #7
    JPC Senior Member Zenigata's Avatar
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    71
    How can you get stats from mysql?

    Thanks

  8. #8
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Zenigata
    How can you get stats from mysql?
    I run my own install of phpMyAdmin. I get this info by simply clicking a link. Other than that, I dunno. Never did it the 'hard way'...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  9. #9
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Still surprising: if I try to access that same page on the site wide phpMyAdmin it answers "No Privileges", yet doing your own install doesn't give you more privileges on the MySQL server, does it?
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  10. #10
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by Gwaihir
    Still surprising: if I try to access that same page on the site wide phpMyAdmin it answers "No Privileges", yet doing your own install doesn't give you more privileges on the MySQL server, does it?
    'They' probably have that feature disabled in the phpMyAdmin config. As a matter of fact, 'they' probably have a lot of stuff disabled in the cPanel version of phpMyAdmin. I've never done an A-B comparison.

    You can setup phpMyAdmin every which way to Sunday. That's one of the reasons why I like to run my own install. There's even a 'demo' mode...
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •