Skip to main content

New to MySQL optimization - need help!

Comments

3 comments

  • cPanelLauren
    Do you have the my.cnf that was present on the old server? Have you followed any of the advice provided to you by the tuner? Ultimately, this isn't something that is best suited for this forum and you should look at getting a database expert to handle this. If you don't have someone, you might try looking here: System Administration Services
    0
  • rackaid
    I cannot say for sure without checking your system, but you may have some SQL mode issues. I've seen cases where upgrades to MySQL 5.7 have caused some SQL queries to have issues. This is do a a change in the sql_mode. You may want to try this mode: sql_mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    I cannot guarantee that this will help without investigating but it negates some of the changes introduced into MySQL 5.7.
    0
  • Tim Yearman
    "Also, check your logs for broken indexes of if you have a small database, just run an optimize/repair on all of the tables." So, as I stated before, I kind of "inherited" this application and didn't know all of the "ins and outs". Apparently, MySQL on our old server was configured in such a way as to minimize the impact on poorly written code, and most importantly, very poorly optimized tables. I've gone ahead and added indexes where (without deep diving into the code) they were obviously lacking. Immediate improvement Thank you for pointing me in the right direction! Not sure how to mark this thread as solved or closed, but I would consider my issue resolved.
    0

Please sign in to leave a comment.