[mysqld] tmpdir=/tmp/mysql [mysqldump] tmpdir=/tmp [client] tmpdir=/tmp
MYSQL_TMPDIR=/tmp/mysql if ! /bin/df $MYSQL_TMPDIR | grep -q "^/dev/md[0-9]"; then mkdir -p $MYSQL_TMPDIR mount_mfs -s 1024m -p 0700 -w mysql:mysql -o noexec md5 $MYSQL_TMPDIR fi
MYSQL_TMPDIR=/tmp/mysql mkdir -p $MYSQL_TMPDIR chown mysql:mysql $MYSQL_TMPDIR mount -t tmpfs -osize=1024m,uid=mysql,gid=mysql,mode=0700,relatime tmpfs $MYSQL_TMPDIR