I changed the tmp directory of the mysql configuration to a mounted disk and on service mysql restart
I get following error:
Can't create/write to file '/mnt/temp/something' (Errcode: 13)
To my understanding, Error Code 13
refers to file permission error.
But strange part is:
temp directory owner is already
mysql
and file permission is1777
drwxrwxrwt 2 mysql mysql 4.0K Nov 14 08:34 temp/
I am able create file in the location with a non root user.
There is 600 Gb of space on mnt so that should not be an issue.
I can create
tmp
directory easily on root disk
/etc/mysql/my.cnf
:
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /mnt/mysql
tmpdir = /mnt/temp
#tmpdir = /var/tmp
Is creating a tmp directory on a mounted disk not allowed? Or else what am I doing wrong? Pls help.