Friday, March 7, 2014

Django Connector Woes

Installing the Python MysqlDB connector for Django on my Macbook was much harder than it should have been.
After a day of tinkering and reading, I've included the steps below (with some references) to help anyone currently trying to make MySQL work locally on their macbook.

Steps to install Mysql Driver on MacOSX
0) Install Homebrew

ruby -e "$(curl -fsSL"

1 ) Install Mysql
brew install mysql

2) export PATH=$PATH:/usr/local/mysql/bin (May be unessesary with HomwBrew install)

3) pip install MySQL-python

4) sudo /usr/local/mysql/support-files/mysql.server start
(force start mysql server 1 time )

For Good Measure:
Not entirely sure if this was needed, but I also installed the Python MysqlDB connector:
(Click no thanks on the Download page to avoid signing up for an Oracle account.)

No comments:

Post a Comment