0 like 0 dislike
177 views
in Education & Reference by (180 points) | 177 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 (820 points)

Related questions

3 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jul 25, 2013 in Education & Reference by Marc (2.8k points) | 559 views
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 25, 2015 in Education & Reference by Simmi (630 points) | 140 views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Aug 8, 2013 in Education & Reference by Avneesh | 498 views

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,226 questions
1,372 answers
559 comments
2,099 users