From 8ac2531de0122d129b7ab03cd615c81e74b44081 Mon Sep 17 00:00:00 2001 From: Rabih Kodeih Date: Thu, 2 Aug 2018 12:01:25 +0300 Subject: [PATCH] Updated Home (markdown) --- Home.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Home.md b/Home.md index 1db86d6..062784d 100644 --- a/Home.md +++ b/Home.md @@ -1 +1,22 @@ -Welcome to the mysqlclient-python wiki! +## 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-connector-c + brew install mysql-client + source ~./bash_profile + env LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib" pip3 install mysqlclient==1.3.9 + +And you are done. +