Not so long ago I had a customer who experienced data loss after
MySQL restart. It was really puzzling. MySQL was up & running for
many months, but after the customer restarted MySQL server all
tables have gone. The tables were still visible in SHOW
TABLES
output, but they were not readable:
mysql> show tables like 'actor'; +--------------------------+ | Tables_in_sakila (actor) | +--------------------------+ | actor | +--------------------------+ 1 row in set (0.00 sec) mysql> select * from actor; ERROR 1146 (42S02): Table 'sakila.actor' doesn't exist mysql>
To understand what’s happened let make some experiments
(WARNING: Don’t do it on production or with
valuable data).
Let’s take a healthy MySQL instance with installed sakila database.
While MySQL is …
[Read more]