Last active
August 29, 2015 13:56
-
-
Save zhasm/9202214 to your computer and use it in GitHub Desktop.
brew install mysql
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
### mysql | |
A "/etc/my.cnf" from another install may interfere with a Homebrew-built | |
server starting up correctly. | |
To connect: | |
mysql -uroot | |
To have launchd start mysql at login: | |
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents | |
Then to load mysql now: | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist | |
Or, if you don't want/need launchctl, you can just run: | |
mysql.server start | |
==> /usr/local/Cellar/mysql/5.6.16/bin/mysql_install_db --verbose --user=rex --basedir=/usr/local/Cellar/mysql/5.6.16 --datadir=/usr/local/var/mysql --tmpdir=/tmp | |
==> Summary | |
🍺 /usr/local/Cellar/mysql/5.6.16: 9425 files, 349M | |
### memcached | |
To have launchd start memcached at login: | |
ln -sfv /usr/local/opt/memcached/*.plist ~/Library/LaunchAgents | |
Then to load memcached now: | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.memcached.plist | |
Or, if you don't want/need launchctl, you can just run: | |
/usr/local/opt/memcached/bin/memcached | |
==> Summary | |
🍺 /usr/local/Cellar/memcached/1.4.17: 10 files, 172K, built in 14 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try
brew info mysql
andbrew info memcached
, etc.