Today a customer gave me the idea of using a separate file as a
volume for limiting the MySQL tmpdir size. On some
not so well set-up Linux systems the MySQL tmpdir is
located under /tmp which is the same mount point as
/ (root). This can lead to troubles in case the
tmpdir is filled up with implicit temporary MyISAM
tables which fills up the / (root) directory of the
O/S as well.
MySQL itself has no possibility to limit explicitly the total size nor the number of implicit temporary tables. So this can happen easily if your application runs amok or you do not have your application under control.
An sometimes there is no possibility to have an extra mount point
for tmpdir because the disk is completely used by
volumes etc. But you have still some space in the file system.
In this case you can, similar to a swap file, use a file in the …
[Read more]