Skip to main content

Help me to analyze SQL Log

Comments

8 comments

  • cPanelLauren
    Hello, This is an issue with innodb and most likely corruption. You may want to increment "innodb_force_recovery" from 1 to 2 and so on in the server's MySQL configuration at /etc/my.cnf
    , restarting MySQL each step along the way in an effort to repair the corruption InnoDB is encountering when it starts up. If you are familiar with linux command line, the following guide is quite helpful and extremely detailed for database restoration and repairing InnoDB:
    0
  • nnnswordfish
    1. Thanks for reply 2. I have hired System Administration service guys and they have scanned and analyzed all DB'S and they are not corrupted, + they say: "We can perform an MYSQL tunning to check whether the issue will persist or not. In order to tune the MYSQL, the service must be online for at least 24 hrs" 3. Do you have other ideas about what else it can be?
    0
  • cPRex Jurassic Moderator
    Hey there! The following portion of that log file does indicate there is an issue with InnoDB during the time of the crash, but MySQL was able to automatically recover: 2019-12-19 16:45:58 3387 [Note] InnoDB: The log sequence numbers 19598720119 and 19598720119 in ibdata files do not match the log sequence number 34962019578 in the ib_logfiles!
    Just after that, we see the following block of text showing the crash was recoverable: 2019-12-19 16:45:58 3387 [Note] InnoDB: Database was not shutdown normally! 2019-12-19 16:45:58 3387 [Note] InnoDB: Starting crash recovery. 2019-12-19 16:45:58 3387 [Note] InnoDB: Reading tablespace information from the .ibd files... 2019-12-19 16:46:02 3387 [Note] InnoDB: Restoring possible half-written data pages 2019-12-19 16:46:02 3387 [Note] InnoDB: from the doublewrite buffer... 2019-12-19 16:46:03 3387 [Note] InnoDB: 128 rollback segment(s) are active. 2019-12-19 16:46:03 3387 [Note] InnoDB: Waiting for purge to start 2019-12-19 16:46:03 3387 [Note] InnoDB: 5.6.45 started; log sequence number 34962019578
    This would indicate the tables are not in a crashed state by the time the admin checked the system, but something is causing them to crash originally, although it seems to be minor as the system is able to recover itself without the need to restore from backups or adjust the MySQL settings on the system. I also agree that it is best to let MySQL run for at least 24 hours, at this gives the "mysqladmin" tools time to build up data that can be used to optimize the service. Performing that optimization and dealing with the root cause of the crashes is something that you'll want to continue working with the system administrator on, but if you'd like to share more details here when you have them, we'll be happy to check.
    0
  • nnnswordfish
    Hi, thanks for help,. Issue was caused by low memory of ram, I have upgraded the ram and all is fine now. Kind Regards, Nick
    0
  • cPRex Jurassic Moderator
    I'm glad to hear that's all it was!
    0
  • nnnswordfish
    Thank you :)
    0
  • annibraun
    Last week, I was also facing the same issues. Honestly, I am not having much knowledge about databases and storage engines. I am doing an internship right now. I am using WordPress. So I contact the support team. They tell me about the exact issue after checking the problem and as they said the problem is in InnoDB due to corruption and suggests some steps to do. I told them about my lack of knowledge then they suggest a tool to resolve this issue i.e. Stellar repair for Mysql. But a little bad for me that it is a paid tool.
    0
  • cPRex Jurassic Moderator
    Handling InnoDB corruption is always a delicate procedure, so I'm not surprised a paid tool was recommended. With those type of issues it is often best to have a professional MySQL admin check the system to make sure no future data loss happens.
    0

Please sign in to leave a comment.