December 9

own tmp directory for mysql

1. need to create directory for it
2. set the right owner
3. add it to config and restart mysql/mariadb

mkdir -pv /var/lib/mysql/own_tmp;chown -R mysql:mysql /var/lib/mysql/own_tmp; echo -e "tmpdir = /var/lib/mysql/own_tmp" >> /etc/my.cnf; service mariadb restart


Copyright 2021. All rights reserved.

Posted 9 December 2021 by admin in category "simple memo

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.