Skip to content

Instantly share code, notes, and snippets.

@bravokeyl
Created March 15, 2018 07:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bravokeyl/785fd43fade1ee525727e22f5179bde6 to your computer and use it in GitHub Desktop.
Save bravokeyl/785fd43fade1ee525727e22f5179bde6 to your computer and use it in GitHub Desktop.
Changing MySQL data directory
sudo service mysql stop
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
sudo nano /etc/apparmor.d/tunables/alias
sudo systemctl restart apparmor

Don't forget to change ownership of the new datadir to mysql

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment