MySQL Forums
Forum List  »  Install & Repo

Re: Can't create/write to file '/root/tmp/
Posted by: Patrick Peeters
Date: November 10, 2006 05:41PM

REMARK :
Don't do this :
1. mkdir /var/lib/mysql/tmp
2. chmod mysql:mysql /var/lib/mysql/tmp
3. Add the following line into the [mysqld] section: tmpdir = /var/lib/mysql/tmp
4. Restart the server

But do :
1. mkdir /tmp/mysql
2. chmod 777 /tmp/mysql
3. chown mysql:mysql /tmp/mysql
4. vi /etc/my.cnf and add in [mysqld section] : tmpdir = /tmp/mysql
5. /etc/init.d/mysql restart or /etc/init.d/mysqld restart to restart mysql-server

Options: ReplyQuote


Subject
Written By
Posted
Re: Can't create/write to file '/root/tmp/
November 10, 2006 05:41PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.