Skip to content

Instantly share code, notes, and snippets.

@z0mbiehunt3r
Created April 1, 2015 14:27
Show Gist options
  • Save z0mbiehunt3r/e0e95ceffb6acf9ba94a to your computer and use it in GitHub Desktop.
Save z0mbiehunt3r/e0e95ceffb6acf9ba94a to your computer and use it in GitHub Desktop.
mysql brew new installation
mysql_install_db --verbose --user=$USER --basedir=/usr/local/Cellar/mysql/5.X --datadir="/NEW/PATH/" --tmpdir=/tmp
cd /usr/local/Cellar/mysql/5.X/bin/
vim mysql.server # change datadir
mysql.server start
/usr/local/Cellar/mysql/5.X/bin/mysqladmin -u root password 'ROOTPASSWORD'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment