Skip to content

Instantly share code, notes, and snippets.

@liuzhitao2000
Last active August 29, 2015 14:05
Show Gist options
  • Save liuzhitao2000/c304250dafdc10a299dc to your computer and use it in GitHub Desktop.
Save liuzhitao2000/c304250dafdc10a299dc to your computer and use it in GitHub Desktop.
bash_profile
export PATH=$PATH:/Applications/xampp/xamppfiles/bin/
install brew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
install pip
sudo easy_install pip
commend-line
brew install mysql-connector-c
pip install MySQL-python
python
con= MySQLdb.connect(host='localhost',user='root',passwd='',db='movie',unix_socket="/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment