I followed Mingcai SHEN's method.
But in my case, I changed the connector to
connector = C:\Program Files\MySQL\MySQL Connector.C 6.1
And the library_dirs is changed to
library_dirs = [ os.path.join(connector, r'lib\vs10') ]
because I don't have a vs9
directory. It works, but I don't know why.
I have vs2012 installed, and the lib directory of the connector only has vs10
and vs11
, in which vs11
doesn't work. The VCForPyhton27.mis I installed seems to support vs9
.
Anyway, this works. And if you want to risk it, you can try.