So you did already try in /etc/my.cnf the following under the [mysqld] section:
tmpdir = /home/mysqltmp
Then saving the file. At that point, you would create the directory:
Code:
mkdir /home/mysqltmp
chown mysql:mysql /home/mysqltmp
chmod 1777 /home/mysqltmp
Then you would restart MySQL and check it did change the tmp directory location:
Code:
/etc/init.d/mysql restart
mysqladmin var | grep tmpdir
If it were properly changed and the directory existing, then MySQL were restarted, it should work to change the temporary directory for MySQL. I've never seen it not work no matter what MySQL version.