FeaturesWP CloudPricingEE CLIContactMy Account

Features

Team Access & User Permissions

Server Setup & Management

Site Creation & Management

Deployments & Developer Tools

Firewall Protection

Speed & Caching

Backups & Recovery

Logs & Monitoring

Create WP Cloud Sites

All Features

Read Documentation

Install

Installation Guide

FAQ

Roadmap

Explore EE CLI

Resources

Commands

Handbook

Blog

Community

Forum

EasyExperts

Tutorials

Subscribe

Github

CLEAR

Start For Free

separator Tutorials separator Mysql separator Using tmpfs for temporary folder creation

Topics

On this page

Edit mysql config

Using tmpfs for temporary folder creation

If you are on Ubuntu, then do this first:


			vim /etc/apparmor.d/usr.sbin.mysqld
		

Add a line:


			/run/mysqld/tmp/** rwk,
		

Restart Apparmor


			service apparmor restart
		

Also create tmp directory and fix ownership/permissions.


			mkdir /run/mysqld/tmp/
chown -R mysql:mysql /run/mysqld/tmp/
chmod 1777 /run/mysqld/tmp/
		

Edit mysql config

Open my.cnf file


			vim /etc/mysql/my.cnf
		

Set/Change tmpdir location


			tmpdir = /run/mysqld/tmp
		

Restart Mysql


			service mysql restart
		

Installing Percona Toolkit

PREVIOUS

YARPP and InnoDB

NEXT


Comments

  1. George Martinez Avatar

    George Martinez

    March 14, 2014

    Hi Rahul Bansal,

    I have been following your tutorials from long ago, also i just installed your awesome script EasyEngine and i would like to know if it is using tmpfs for temporary folder creation.

    Keep the good work guys.

  2. Mitesh Shah Avatar

    Mitesh Shah

    March 14, 2014

    Hello George Martinez,

    Right now EasyEngine doesn’t used tmpfs for temporary folder creation.

Features

Useful Links

Product

Other Products

Subscribe for curated product updates, tips, and announcements.

"*" indicates required fields

URL

This field is for validation purposes and should be left unchanged.

Email*

SIGN ME UP

Δ


© rtCamp, since 2009. All rights reserved.

Powered by