Claim your Biolink Click Here
0 like 0 dislike
478 views
in Education & Reference by (460 points) | 478 views

1 Answer

0 like 0 dislike

STEP 1.

df -h

STEP 2.

mkdir -p /var/mysqltmp

STEP 3.

chown mysql:mysql /var/mysqltmp

STEP 4.

id mysql

OutPut :

uid=27(mysql) gid=27(mysql) groups=27(mysql)

STEP 5.

vi /etc/fstab

Add the below Line (Custom gid and uid accroding to id mysql output )

tmpfs /var/mysqltmp tmpfs rw,gid=27,uid=27,size=10G,nr_inodes=10k,mode=0700 0 0

STEP 6.

df -h

STEP 7.

vi /etc/my.cnf

Add Line

tmpdir = /var/mysqltmp

STEP 8.

service mysqld restart

STEP 9.

Verify Temp in mysql

mysql -p

STEP 10.

mysql> SHOW VARIABLES LIKE 'tmpdir';

OUTPUT

+---------------+---------------+
| Variable_name | Value |
+---------------+---------------+
| tmpdir | /var/mysqltmp |
+---------------+---------------+

STEP 11.
mysql> exit

by (1.1k points)

Related questions

0 like 0 dislike
2 answers
3 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jul 25, 2013 in Education & Reference by Marc (4.7k points) | 805 views
1 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Sep 15, 2017 in Education & Reference by Krish (1.1k points) | 344 views
0 like 0 dislike
1 answer
asked May 26, 2015 in Education & Reference by Simmi (830 points) | 449 views
0 like 0 dislike
1 answer

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,312 questions
1,473 answers
569 comments
4,809 users