Skip to content

Instantly share code, notes, and snippets.

@bravokeyl
Created March 15, 2018 07:19
Show Gist options
  • 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