I still get asked about the lost+found directory enough, and so I
wanted to provide a current update.
The lost+found directory is a filesystem directory created at the
root level of a mapped drive. Thus this is common to see if you
create your mysql datadir at the root level of a mapped drive.
In the past, you could ignore it, if it wasn’t too problematic
for you, or you could move your datadir down a level, and then it
wouldn’t be created in the datadir anymore.
However, there is now the –ignore-db-dir option. It is actually
not too new (it’s been in MariaDB since 5.3.9 and 5.5.28, and in
MySQL as of 5.6.3), but I don’t think many are too familiar with
it.
But when you do run into this problem, some/many would prefer to
add a single line to the config file rather than move the
datadir.
To do this, just add the following option to your my.cnf file,
under the [mysqld] section (it cannot be set …
[Read more]