MySQL fail to start: “Can`t read dir of /root/tmp/”

I’ve got theis error:
/usr/sbin/mysqld: Can't read dir of '/root/tmp/'
Simply, trite, but hard to guess:
$TMPDIR had value /root.
How to fix:
export TMPDIR=/tmp/
I added this into /etc/init.d/mysql

Tags: Bookmark and Share

Leave a Reply


Attention! You are prohibited from using "[url=http..." or "[url]http..." in comment's body or it will be deleted as spam and your IP blacklisted!