zoukankan      html  css  js  c++  java
  • A solution for MySQL Assertion failure FIL_NULL

    A solution for MySQL Assertion failure FIL_NULL

    http://michaelfranzl.com/2014/01/25/solution-mysql-assertion-failure-fil_null/

    A defective RAM module recently caused data corruption in MySQL tables. MySQL would log the following to /var/log/syslog  in regular intervals, about every few minutes:

    Reading MySQL documentation and various blogs didn’t help much. I ran CHECK TABLES  on all the tables and they all reported OK. Then I ran

    and still all tables reported OK. Nevertheless the Assertion Failures continued. Then I stumbled across this excellent blog post, which suggested to dump evertying into a .sql file, wipe/var/lib/mysql (not without making a backup, mind you!), and re-import everything from scratch. This is what I did and it worked.

    I recorded the passwords for each database and collected it into a SQL script like this:

    When you dump all databases into a .sql file, it will not dump the permissions, so you will need to restore them later with this script. Next, the dumping part, then removal and reinstallation of mysql (Danger here: When you remove mysql-server, all packges which depend on it also will be removed!):

    Here, I had to reset the MySQL admin password because it didn’t work any more, so I ran:

    Then, I re-imported all databases from the dump file:

    Then I run the SQL permission script that I mention above.

    For me, this resulted in no more Assertion Failures. Yay!

  • 相关阅读:
    小白_开始学Scrapy__原理
    python zip()函数
    前端工程精粹(一):静态资源版本更新与缓存
    HTML 5 History API的”前生今世”
    常见的几个js疑难点,match,charAt,charCodeAt,map,search
    前端安全须知
    Html5游戏框架createJs组件--EaselJS(二)绘图类graphics
    Html5游戏框架createJs组件--EaselJS(一)
    github基本用法
    jquery ajax中事件的执行顺序
  • 原文地址:https://www.cnblogs.com/MYSQLZOUQI/p/4238805.html
Copyright © 2011-2022 走看看