Last active
January 8, 2020 23:11
-
-
Save jerry-maheswara-github/cd851c4f37a4876b631b2a714a2de815 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
How to change mysql data folder on XAMPP macOS: | |
$ cp -R /Applications/XAMPP/xamppfiles/var/mysql /Volumes/DataDisk/Data/mysqldata | |
$ sudo chown -R _mysql /Volumes/DataDisk/Data/mysqldata | |
$ sudo chgrp -R _mysql /Volumes/DataDisk/Data/mysqldata | |
$ sudo nano /Applications/XAMPP/xamppfiles/bin/mysql.server | |
or | |
# sudo nano /Applications/XAMPP/xamppfiles/share/mysql/mysql.server | |
then fill in datadir with the appropriate path | |
basedir= | |
datadir=/Volumes/DataDisk/Data/mysqldata/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment