Removed install step for macOS because it mixed Oracle MySQL and Homebrew mysql-client without valid reason.

Inada Naoki
2019-11-28 20:23:09 +09:00
parent aa8152df04
commit cea979f3a7

22
Home.md

@ -1,20 +1,4 @@
## Installing Mysql and Mysqlconnector on MacOs
First thing download desired version of mysql from Oracle's site and double click the dmg file so it installs normally.
Make sure mysql server is running :
/usr/local/mysql/bin/mysql -uroot -p
Exit and then add the following environment variable to your `~/.bash_profile`:
PATH="/usr/local/opt/mysql-client/bin:$PATH"
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
Now
brew install mysql-client
env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip3 install mysqlclient==1.3.9
And you are done.
## Installing MySQL and mysqlclient on macOS
brew install mysql
pip install mysqlclient