fetch https://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.4.zip
unzip MySQL-python-1.2.4.zip
cd MySQL-python-1.2.4
python setup.py install
ln -s /usr/local/mysql/bin/mysql_config /usr/local/bin/mysql_config
/usr/bin/ld: cannot find -lmysqlclient_r 错误
ln -s /usr/local/mysql/lib/libmysqlclient.so /usr/local/mysql/lib/mysql/libmysqlclient.so
ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/local/mysql/lib/mysql/libmysqlclient.so.18
ln -s /usr/local/mysql/lib/libmysqlclient_r.so /usr/local/mysql/lib/mysql/libmysqlclient_r.so
ln -s /usr/local/mysql/lib/libmysqlclient_r.so.18 /usr/local/mysql/lib/mysql/libmysqlclient_r.so.18