HOW TO CHANGE OR MOVE MYSQL /TMP DIRECTORY

This tutorial explains how you can change or move MySQL /tmp directory to a new location on a server / VPS. Login as root to your server via SSH.

Step 1: Open /etc/my.cnf file for editing

nano /etc/my.cnf

Step 2: Add below line under the [mysqld] section and save the file.

tmpdir=/home/mysqltmp

To save file press: Ctrl + O
To exit from nano editor press: Ctrl + X

This will set new location of MySQL tmp to /home/mysqltmp. You may change to any different location.

Step 3: Create new directory

mkdir /home/mysqltmp
chmod 1777 /home/mysqltmp

Step 4: Restart MySQL

/etc/init.d/mysql restart

Step 5: Check new location

mysqladmin var | grep tmpdir

This should show following return.

| slave_load_tmpdir                       | /home/mysqltmp
| tmpdir                                  | /home/mysqltmp

Done!!

  • 0 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

I want to buy one dedicated IP and make it shared

If you are a reseller who wants to buy a single dedicated IP address, then assign it to all...

I upgraded the bandwidth or disk space limit on my packages. Why aren't my sites updating?

I edited a hosting package. Why aren't my sites showing up with the new stats? Whenever you...

How to reset a reseller client's password

Instead of reading this, you can watch the movie tutorial. Go to WHM and click Password...

Do you have a manual for our reseller panel?

Yes Go to http://www.cpanel.net/docs/whm/ to view the documentation for Web Host Manager...

How can my clients view their site before the DNS has propagated?

They can go to: http://youriphere/~theirusernamehere/ The IP and user name assigned to a domain...