0 like 0 dislike
92 views
asked May 27, 2014 in Education & Reference by Yogi (180 points) | 92 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

answered May 27, 2014 by Krish (880 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,460 points) | 541 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 26, 2015 in Education & Reference by Simmi (510 points) | 122 views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked Aug 9, 2013 in Education & Reference by Avneesh | 486 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

Mathe Forum Schule und Studenten
1,171 questions
1,311 answers
276 comments
1,603 users