Skip to content

Instantly share code, notes, and snippets.

@pantunes
Created March 15, 2020 14:17
Show Gist options
  • Save pantunes/83ecdd5a2f1312df83ddb3ea8b5d8c92 to your computer and use it in GitHub Desktop.
Save pantunes/83ecdd5a2f1312df83ddb3ea8b5d8c92 to your computer and use it in GitHub Desktop.
https://linuxhint.com/change_mysql_data_directory_ubuntu/
-> sudo grep -R --color datadir /etc/mysql/*
-> sudo systemctl stop mariadb
sudo systemctl status mariadb
sudo service mariadb stop
sudo service mariadb status
https://www.digitalocean.com/community/tutorials/how-to-change-a-mariadb-data-directory-to-a-new-location-on-centos-7
-> sudo rsync -av /var/lib/mysql /mnt/vault/
# Installed hard drives or SSDs
-> sudo lsblk | grep disk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment