1. vi /etc/mysql/my.conf
tmpdir = /mnt/md0/mysqltmp
2. mkdir /mnt/md0/mysqltmp
chown mysql:mysql /mnt/md0/mysqltmp
chmod 1777 /mnt/md0/mysqltmp
3. vi /etc/apparmor.d/usr.sbin.mysqld
/mnt/md0/mysqltmp/* rw,
4. /etc/init.d/apparmor restart
/etc/init.d/mysql restart
tmpdir = /mnt/md0/mysqltmp
2. mkdir /mnt/md0/mysqltmp
chown mysql:mysql /mnt/md0/mysqltmp
chmod 1777 /mnt/md0/mysqltmp
3. vi /etc/apparmor.d/usr.sbin.mysqld
/mnt/md0/mysqltmp/* rw,
4. /etc/init.d/apparmor restart
/etc/init.d/mysql restart
沒有留言:
張貼留言