Created
March 15, 2020 14:17
-
-
Save pantunes/83ecdd5a2f1312df83ddb3ea8b5d8c92 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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