Last active
September 9, 2019 08:39
-
-
Save srockstyle/af179084786d2dc96a5c2c9adeded5c0 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
## ------------- | |
## macOS | |
## ------------- | |
brew install mysql@5.7 # mysql@5.6 / default mysql8 | |
## ~/.bash_profile or ~/.zshrc | |
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH" | |
export LDFLAGS="-L/usr/local/opt/mysql@5.7/lib" | |
export CPPFLAGS="-I/usr/local/opt/mysql@5.7/include" | |
export PKG_CONFIG_PATH="/usr/local/opt/mysql@5.7/lib/pkgconfig" | |
## source ~/.bash_profile or ~/.zshrc | |
# cd application_dir | |
gem install mysql2 # or bundle install | |
## ------------- | |
## Linux (redhat) | |
## ------------- | |
yum install mysql mysql-devel | |
gem install mysql2 # or bundle install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment