Update for mysql 5.5 and config-win.h no problem visible
In version 5.5, config-win. actually moved to a separate Connector folder in windows. i.e. smth like:
C: \ Program Files \ MySQL \ Connector C 6.0.2 \ include
To overcome this problem, you need to not only download the "dev bits" (which actually connects the connector), but also modify the mysqldb installation scripts to add the include folder. I made a quick dirty fix.
site.cfg:
# Windows connector libs for MySQL. connector = C:\Program Files\MySQL\Connector C 6.0.2
in setup_windows.py find the line
include_dirs = [ os.path.join(mysql_root, r'include') ]:
and add:
include_dirs = [ os.path.join(options['connector'], r'include') ]
after him.
Horrible, but it works until the mysqldb authors change the behavior.
Almost forgot to mention. In the same way, add a similar additional entry for libs:
library_dirs = [ os.path.join(options['connector'], r'lib\opt') ]
i.e. your setup_windows.py looks something like this:
... library_dirs = [ os.path.join(mysql_root, r'lib\opt') ] library_dirs = [ os.path.join(options['connector'], r'lib\opt') ] libraries = [ 'kernel32', 'advapi32', 'wsock32', client ] include_dirs = [ os.path.join(mysql_root, r'include') ] include_dirs = [ os.path.join(options['connector'], r'include') ] extra_compile_args = [ '/Zl' ] ...
Bugagotti Apr 16 2018-11-11T00: 00Z
source share