html tool

2014年8月31日星期日

python for mysql connect

1.linux using _mysql(add:http://zetcode.com/db/mysqlpython/)
2.windows using _mysql
( http://mysql-python.blogspot.com/2012/11/is-mysqldb-hard-to-install.html)
问题:"error: Unable to find vcvarsall.bat"
解决:http://stackoverflow.com/questions/2272786/python-issueunable-to-find-vcvarsall-bat
【You will need MSVC compiler or mingw32 to compile that, and also need MySQL Header files.

I've compiled once for MySQL1.2.3c1 for Python2.6, you could find it here.】
setup了:MySQL-python-1.2.3c1.win32-py2.6.exe

没有评论:

发表评论