<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Install MySQL for Python (MySQLdb) on Windows</title>
	<atom:link href="http://fuyun.org/2009/12/install-mysql-for-python-on-windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/</link>
	<description>a system engineer&#039;s blog</description>
	<lastBuildDate>Fri, 25 Nov 2011 13:20:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Harry</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-3/#comment-151</link>
		<dc:creator>Harry</dc:creator>
		<pubDate>Thu, 14 Apr 2011 12:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-151</guid>
		<description>After two days trying to get this working I found the following steps seemed to work for me - read these in conjunction with the packaged README.

For Windows:
- download and install the following:
1. Python 2.7 http://www.python.org/
2. Setuptools http://pypi.python.org/pypi/setuptools
3. MinGW http://www.mingw.org/category/wiki/download
4. Mysql 5.1 http://www.mysql.com/downloads/

- Don&#039;t worry about Zlib
- Don&#039;t worry about OpenSSL

- comment out these lines in setup_windows.py
    # XXX static doesn&#039;t actually do anything on Windows
    #if enabled(options, &#039;embedded&#039;):
    #    client = &quot;mysqld&quot;
    #else:
    #    client = &quot;mysqlclient&quot;

- Add this line below the commented lines  (this instructs the compiler to use the dynamic version of the mysql libraries - static will only work using the same compiler as mysql was compiled with.
    client = &quot;libmysql&quot;

- Add the following to the PATH environment variable
	C:\MinGW\bin;

- Change this line in site.cfg to the following
registry_key = SOFTWARE\MySQL AB\MySQL Server 5.1

- Run this command
python setup.py build --compile=mingw32

- Then Run this command
python setup.py install</description>
		<content:encoded><![CDATA[<p>After two days trying to get this working I found the following steps seemed to work for me &#8211; read these in conjunction with the packaged README.</p>
<p>For Windows:<br />
- download and install the following:<br />
1. Python 2.7 <a href="http://www.python.org/" rel="nofollow">http://www.python.org/</a><br />
2. Setuptools <a href="http://pypi.python.org/pypi/setuptools" rel="nofollow">http://pypi.python.org/pypi/setuptools</a><br />
3. MinGW <a href="http://www.mingw.org/category/wiki/download" rel="nofollow">http://www.mingw.org/category/wiki/download</a><br />
4. Mysql 5.1 <a href="http://www.mysql.com/downloads/" rel="nofollow">http://www.mysql.com/downloads/</a></p>
<p>- Don&#8217;t worry about Zlib<br />
- Don&#8217;t worry about OpenSSL</p>
<p>- comment out these lines in setup_windows.py<br />
    # XXX static doesn&#8217;t actually do anything on Windows<br />
    #if enabled(options, &#8216;embedded&#8217;):<br />
    #    client = &#8220;mysqld&#8221;<br />
    #else:<br />
    #    client = &#8220;mysqlclient&#8221;</p>
<p>- Add this line below the commented lines  (this instructs the compiler to use the dynamic version of the mysql libraries &#8211; static will only work using the same compiler as mysql was compiled with.<br />
    client = &#8220;libmysql&#8221;</p>
<p>- Add the following to the PATH environment variable<br />
	C:\MinGW\bin;</p>
<p>- Change this line in site.cfg to the following<br />
registry_key = SOFTWARE\MySQL AB\MySQL Server 5.1</p>
<p>- Run this command<br />
python setup.py build &#8211;compile=mingw32</p>
<p>- Then Run this command<br />
python setup.py install</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nk1</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-3/#comment-150</link>
		<dc:creator>nk1</dc:creator>
		<pubDate>Wed, 06 Apr 2011 17:54:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-150</guid>
		<description>Hey ,

I followed your instructions but it does&#039;nt help. First of all in windows 7 the SQL gets installed under Wow6432Node registry key. So i changed it in site.cfg but now there comes no error but am unable to import MySQLdb......</description>
		<content:encoded><![CDATA[<p>Hey ,</p>
<p>I followed your instructions but it does&#8217;nt help. First of all in windows 7 the SQL gets installed under Wow6432Node registry key. So i changed it in site.cfg but now there comes no error but am unable to import MySQLdb&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Efrén Serrano</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-3/#comment-149</link>
		<dc:creator>Efrén Serrano</dc:creator>
		<pubDate>Wed, 06 Apr 2011 08:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-149</guid>
		<description>Nice post!

At this moment, for resolve this old warning, you can download and install python-mysqldb binaries from codegood.com</description>
		<content:encoded><![CDATA[<p>Nice post!</p>
<p>At this moment, for resolve this old warning, you can download and install python-mysqldb binaries from codegood.com</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Indradeep Moitra</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-3/#comment-148</link>
		<dc:creator>Indradeep Moitra</dc:creator>
		<pubDate>Fri, 01 Apr 2011 10:14:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-148</guid>
		<description>C:\Python23\MySQL-python-1.2.3&gt;setup.py build
running build
running build_py
copying MySQLdb\release.py -&gt; build\lib.win32-2.3\MySQLdb
running build_ext
building &#039;_mysql&#039; extension
C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe /DLL /nologo /INCREME
NTAL:NO &quot;/LIBPATH:C:\Program Files\MySQL\MySQL Server 5.5\lib\opt&quot; /LIBPATH:C:\P
ython23\libs /LIBPATH:C:\Python23\PCBuild kernel32.lib advapi32.lib wsock32.lib
mysqlclient.lib /EXPORT:init_mysql build\temp.win32-2.3\Release\_mysql.obj /OUT:
build\lib.win32-2.3\_mysql.pyd /IMPLIB:build\temp.win32-2.3\Release\_mysql.lib
LINK : fatal error LNK1181: cannot open input file &quot;mysqlclient.lib&quot;
error: command &#039;&quot;C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe&quot;&#039; fa
iled with exit status 1181

I cannot figure out the reason for the error. I have got Microsoft Visual Studio 6, Python 2.3 and MySQL 5.5 installed in my system. I am trying to load MySQLdb</description>
		<content:encoded><![CDATA[<p>C:\Python23\MySQL-python-1.2.3&gt;setup.py build<br />
running build<br />
running build_py<br />
copying MySQLdb\release.py -&gt; build\lib.win32-2.3\MySQLdb<br />
running build_ext<br />
building &#8216;_mysql&#8217; extension<br />
C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe /DLL /nologo /INCREME<br />
NTAL:NO &#8220;/LIBPATH:C:\Program Files\MySQL\MySQL Server 5.5\lib\opt&#8221; /LIBPATH:C:\P<br />
ython23\libs /LIBPATH:C:\Python23\PCBuild kernel32.lib advapi32.lib wsock32.lib<br />
mysqlclient.lib /EXPORT:init_mysql build\temp.win32-2.3\Release\_mysql.obj /OUT:<br />
build\lib.win32-2.3\_mysql.pyd /IMPLIB:build\temp.win32-2.3\Release\_mysql.lib<br />
LINK : fatal error LNK1181: cannot open input file &#8220;mysqlclient.lib&#8221;<br />
error: command &#8216;&#8221;C:\Program Files\Microsoft Visual Studio\VC98\BIN\link.exe&#8221;&#8216; fa<br />
iled with exit status 1181</p>
<p>I cannot figure out the reason for the error. I have got Microsoft Visual Studio 6, Python 2.3 and MySQL 5.5 installed in my system. I am trying to load MySQLdb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Instaladores de MySQLdb para Windows &#124; Segaco</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-2/#comment-147</link>
		<dc:creator>Instaladores de MySQLdb para Windows &#124; Segaco</dc:creator>
		<pubDate>Wed, 30 Mar 2011 06:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-147</guid>
		<description>[...] final, buscando en la Internet encontré como construirlo e instalarlo en el magnífico tutorial de Yun Fu, pero para ello es necesario tener instalado Microsoft Visual C++ 2008 y modificar un par de [...]</description>
		<content:encoded><![CDATA[<p>[...] final, buscando en la Internet encontré como construirlo e instalarlo en el magnífico tutorial de Yun Fu, pero para ello es necesario tener instalado Microsoft Visual C++ 2008 y modificar un par de [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-2/#comment-146</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 28 Mar 2011 21:20:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-146</guid>
		<description>hi,

I followed your instruction and was able to run setup.py successfully. At the end, I got error: none.
However, when I tried to run import MySQLdb I&#039;m getting the error: no module named _mysql

Any help is greatly appreciated.</description>
		<content:encoded><![CDATA[<p>hi,</p>
<p>I followed your instruction and was able to run setup.py successfully. At the end, I got error: none.<br />
However, when I tried to run import MySQLdb I&#8217;m getting the error: no module named _mysql</p>
<p>Any help is greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 在64位Windows 7上安装MySQLdb &#171; CAFF</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-2/#comment-145</link>
		<dc:creator>在64位Windows 7上安装MySQLdb &#171; CAFF</dc:creator>
		<pubDate>Wed, 23 Mar 2011 18:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-145</guid>
		<description>[...] 参考了这个和这个帖子，在注册表中增加了下面的key （根据你的MySQL设置实际的版本号)： [...]</description>
		<content:encoded><![CDATA[<p>[...] 参考了这个和这个帖子，在注册表中增加了下面的key （根据你的MySQL设置实际的版本号)： [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benny Neugebauer</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-2/#comment-144</link>
		<dc:creator>Benny Neugebauer</dc:creator>
		<pubDate>Fri, 18 Mar 2011 02:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-144</guid>
		<description>Hi, I&#039;m getting gcc status code 1: http://img638.imageshack.us/img638/275/gccfailedwithexitstatus.png - Can anyone help me?</description>
		<content:encoded><![CDATA[<p>Hi, I&#8217;m getting gcc status code 1: <a href="http://img638.imageshack.us/img638/275/gccfailedwithexitstatus.png" rel="nofollow">http://img638.imageshack.us/img638/275/gccfailedwithexitstatus.png</a> &#8211; Can anyone help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fix the problem while installing python packages. &#124; read-think-act</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-2/#comment-143</link>
		<dc:creator>Fix the problem while installing python packages. &#124; read-think-act</dc:creator>
		<pubDate>Mon, 14 Mar 2011 10:11:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-143</guid>
		<description>[...] refering the following link , problem fixed. The easy_install set ‘MANIFESTFILE’ as the default link directory, I guess.    [...]</description>
		<content:encoded><![CDATA[<p>[...] refering the following link , problem fixed. The easy_install set ‘MANIFESTFILE’ as the default link directory, I guess.    [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hoody</title>
		<link>http://fuyun.org/2009/12/install-mysql-for-python-on-windows/comment-page-2/#comment-142</link>
		<dc:creator>hoody</dc:creator>
		<pubDate>Fri, 11 Mar 2011 11:28:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.fuyun.org/?p=231#comment-142</guid>
		<description>I love you man!!!! wow thanks!!!! YOur post save my head!</description>
		<content:encoded><![CDATA[<p>I love you man!!!! wow thanks!!!! YOur post save my head!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

