MySQL-python 1.2.3 for Windows and Python 2.7, 32bit and 64bit versions

Last Updated on Sunday, 19 September 2010 04:58 Written by Ioannis Lalopoulos Sunday, 19 September 2010 02:27

I have added to the downloads page two distributions of the mysql-python module 1.2.3 for python 2.7

The distributions are:

  MySQL-python-1.2.3.win32-py2.7.exe (1,023.1 KiB) (1.0 MiB)

Some quick notes:

  1. The choice of 32bit and 64bit depends on the version of python you have installed in your computer and not in the operating system or the server you want to access. So if you have the 32 bit python 2.7 installed on your 64 bit Windows, you will download and install the 32 bit version.
  2. Some python distributions do not make correct registry entries when they install the 64bit python. If this is the case the 64 bit mysql-python installer will not find your python installation. This means that the 64bit python version has been wrongly set in the registry under the Wow6432Node which is under convention for 32bit software only. You will have to add/move the python registry node in the correct place i.e. in HKEY_LOCAL_MACHINE\SOFTWARE  for more info see my post in sourceforge . If your python is from the official distribution (  you will not have this problem.

Following are the results  of the test suite that comes with mysql-python on the newly build distributions (I had to edit the tests in three places to replace deprecated test methods in 2.7  that were giving, for that reason, warnings and subsequently two failures in the


  1. Carola   |  Tuesday, 21 September 2010 at 13:26

    whenever I try to install th mysql module for python 2.7 I get the message, that the (10.)exe – file does not work anymore.
    Python 2.7 is installed.
    Can anyone help me?
    (I get the same problem when switching to an older version)
    Thank you

  2. Kenneth Voort   |  Tuesday, 21 September 2010 at 21:40


    Just a quick note to let you know how much time this just saved me. I just spent the better part of a day trying to get MySQLdb to compile on Windows before I came across your packages. Many thanks for the work.

    Kenneth Voort

  3. MFS   |  Sunday, 03 October 2010 at 14:22

    @Carola: you have to install it from administrator account.

  4. HFR   |  Monday, 11 October 2010 at 00:06


    like the previous poster I spent quite some time trying to install MySQLdb on Win7 – without any success – before I found your packages. Many thanks for your excellent work.


  5. Yoav Shapira   |  Tuesday, 12 October 2010 at 21:02

    This is awesome!!! Many thanks.

  6. Rasmus   |  Wednesday, 13 October 2010 at 15:21

    Thanks a lot!

  7. Jeff   |  Sunday, 31 October 2010 at 22:15

    This is great; thanks a lot!

  8. James   |  Tuesday, 23 November 2010 at 07:11

    You are a life saver. I’m a PHP programmer taking an intro to python course and I was in way over my head trying to figure all this out on my own. Thank you so much for doing this.

  9. David   |  Monday, 06 December 2010 at 20:30

    I am most grateful for your binaries, as haven’t been able to figure out how to build my own in several years. I use both the standard server version and the embedded version for different builds of my software. Will you be making a version of the embedded database for Python 2.7?

  10. Ivan   |  Wednesday, 08 December 2010 at 18:20

    Words cannot explain how much this has helped me today. Keep up the great work you’re doing for the (Windows) community!

  11. Kerry   |  Tuesday, 14 December 2010 at 05:44

    Thank you so much, save me a lot of time.

  12. renwofei423   |  Wednesday, 05 January 2011 at 10:18

    Thanks !

  13. idydenka   |  Monday, 17 January 2011 at 12:53

    it’s help me too much. :D

  14. Cd   |  Tuesday, 18 January 2011 at 02:26

    I am very grateful for these builds. Thank you very much!

  15. Olddog   |  Sunday, 23 January 2011 at 11:19

    Thanks a lot! It’s a week i am looking for a solution of this problem and here i found it. You are great!.
    Greetings from Italy.

  16. David   |  Thursday, 03 March 2011 at 08:02

    Fantastic! Thanks for sharing.

  17. Curt   |  Thursday, 03 March 2011 at 16:58

    Wow, thank you for this! I am really liking Python and Django a lot, mostly because the people behind them seem to understand that if you take the time to write coherent documentation and make installation easy, people will choose your product over others. I feel the open source community forgets that far too often. Windows may be an inferior OS, and VB .NET may make you roll your eyes, but they are popular because Microsoft made them easy for the average person to get started with. You don’t need to run seventeen command line scripts and manually edit five config files that are only referenced in poor, out-of-date documentation to get them running. I love the open source community and it pains me that they don’t seem to get this, but you do, so thank you.

  18. kalyan   |  Tuesday, 08 March 2011 at 20:30

    Thanks a lot ! It saved lots of my time

  19. Aswin C.   |  Tuesday, 08 March 2011 at 22:48

    Thank You.

  20. Stephen Johnston   |  Friday, 18 March 2011 at 08:46

    Great Job! Real time saver!

  21. Alberto Gaona   |  Saturday, 19 March 2011 at 23:08


  22. J.P.   |  Saturday, 02 April 2011 at 04:36

    Thank you very much, saved me several hours. :)

  23. Martijn   |  Wednesday, 06 April 2011 at 23:03

    Thanks a lot! Saved me a lot of effort too!!!! Got it running under Linux ofcourse without any problem, but hey, this is Windows, and one just needs help! Thanks!

  24. Djibril   |  Monday, 18 April 2011 at 11:04

    Thank’s a lot! that is helpful
    all the best

  25. Ewing   |  Tuesday, 17 May 2011 at 08:13


  26. zean   |  Wednesday, 18 May 2011 at 08:21

    Thank you man.

    you saved me a lot of work.


  27. andyguo   |  Friday, 24 June 2011 at 13:44

    Thx so much!

  28. Dawid   |  Thursday, 07 July 2011 at 01:44

    Thank you man, works great, time saver :)

  29. Shravan   |  Tuesday, 12 July 2011 at 09:32

    This is a godsend. Thank you so much!

  30. Vladimir   |  Tuesday, 12 July 2011 at 10:02

    Thank you! Nice work. I am your debtor

  31. obyelect   |  Monday, 25 July 2011 at 14:24

    WOOOWWW IS THAT IT i hve wasted so much time trying to work this out, thnk you so much you r a blessing :)

  32. dub   |  Wednesday, 03 August 2011 at 00:23

    Thanks! Saved me a lot of time!

  33. Ashwin   |  Friday, 05 August 2011 at 08:06

    Dude !!
    Good work !

  34. Saurav Haloi   |  Tuesday, 09 August 2011 at 08:20

    Thanks a lot.

  35. Sanjit   |  Thursday, 25 August 2011 at 23:40

    thanks very much!

  36. Arvind   |  Monday, 29 August 2011 at 13:10

    thank u……….!

  37. Luke   |  Tuesday, 13 September 2011 at 20:21

    Thanks for this!

  38. Bejoo   |  Wednesday, 28 September 2011 at 03:01

    This is awesome !! I do not remember last time an installation was as easy as this one. Thank you :)

  39. Krishna   |  Saturday, 01 October 2011 at 20:10

    THANK YOU very much !!

  40. รับทําเว็บไซต์ราคาถูก   |  Monday, 03 October 2011 at 16:10

    Great!!!! Thanks a lot

  41. Pawankumar Jajara   |  Tuesday, 01 November 2011 at 00:51

    Great Job !

    MySQL was not working with Django since 2 days and this binary saved my life.

    Hats Off Sir !

  42. pachecoj   |  Thursday, 17 November 2011 at 04:19

    I have been trying to get this to build in Windows for 3hrs. It is 2:19am and I just came across your binary. Why didn’t I think to search for this 3hrs ago! Thank you, worked like a charm!

  43. Arulmurugan Rajaraman   |  Friday, 18 November 2011 at 17:46

    Thank u so much for the mysqldb module installer. I was searching for this for a very long time. Thanks once again.

  44. Daniel   |  Friday, 25 November 2011 at 09:16

    Thank you very much.
    it works ^^

  45. Roma   |  Tuesday, 29 November 2011 at 02:08

    Dear sir,

    thank you very much!

    Best regards,
    Roma from Russia)

  46. rifqi   |  Tuesday, 29 November 2011 at 12:38

    thx …

  47. Alekei   |  Tuesday, 13 December 2011 at 16:49

    Thank you!

  48. feudin   |  Tuesday, 20 December 2011 at 02:16

    I have also wasted the best part of a day trying to get this done, thanks ALOT!

  49. Javatican   |  Wednesday, 04 January 2012 at 13:00

    Thanks a lot……………….

  50. david   |  Thursday, 05 January 2012 at 08:10

    Thanks so much!

  51. jd   |  Tuesday, 17 January 2012 at 07:35

    Thanks a lot!!!

  52. Kalail   |  Friday, 20 January 2012 at 12:03

    You sir, are a god amongst men. Honestly, your package has solved the issue I’ve been hacking at all night.

  53. Kyle   |  Thursday, 26 January 2012 at 19:31

    Much thanks, had so many issues attempting to compile from source!

  54. Joe   |  Friday, 27 January 2012 at 01:59

    YES!!! u=awesome

  55. Stephen Clark Jr.   |  Friday, 27 January 2012 at 21:07

    Thanks, this is much appreciated.

  56. DIPPA   |  Sunday, 29 January 2012 at 00:15

    Thank a lot to give this ;-)

  57. Cholavendhan   |  Sunday, 29 January 2012 at 08:57

    Thanks a lot.. I searched a lot.. Finally i got it with ease from u..

  58. Martin   |  Tuesday, 07 February 2012 at 00:19

    Just used this to install mysql-python into a virtual env by installing it into site-packages in the python install and then copying everything starting with ‘mysql’ into site-packages in my virtual env. Seemed to work – however, wondering if there’s a better way to do this? At the moment the installer picks up the python interpreter from the registry and so doesn’t support virtual envs, unless I’m missing something.
    Thanks, BTW – I was struggling to build from source (couldn’t get past gcc: error: /Zl: No such file or directory).

  59. J   |  Tuesday, 07 February 2012 at 04:29

    Awesome – took me a day to find this, but I did, and it works.

    Thank you for posting it.


  60. Harsh   |  Thursday, 09 February 2012 at 00:58

    Thx a lot. You saved me much time.

  61. Mark Jones   |  Tuesday, 14 February 2012 at 22:36

    It would be TRULY awesome if you could key the virtual env you wanted it installed into. That way I wouldn’t have to resort to things like

    xcopy c:\python27\lib\site-packages\MySQLdb c:\Python\VirtualENV\lib\site-packages\MySQLdb /s/e
    And tell it that this is a directory (not a file)
    xcopy c:\python27\lib\site-packages\MySQL_python-1.2.3-py2.7.egg-info c:\Python\VirtualENV\lib\site-packages\ MySQL_python-1.2.3-py2.7.egg-info /s/e
    And tell it that this is a directory (not a file)

    copy c:\python27\lib\site-packages\_mysql*.* c:\Python\VirtualENV\lib\site-packages

    You may at some point have to deal with 1.2.3 being something else, and of course VirtualENV is the virtualENV you need the support in.

  62. sashan   |  Monday, 27 February 2012 at 16:11

    Absolutely awesome man, thanx a lot.
    Was struggling a lot with the package but your installer did the job just like that !

  63. Hari   |  Friday, 02 March 2012 at 09:43

    Thanks a lot! Just like others in the comments, spent quite a bit of time on building mysql-python for Windows in vain until I found this page!

  64. Asim   |  Monday, 05 March 2012 at 03:40

    You don’t understand how much I love you right now.


  65. Ariel   |  Monday, 05 March 2012 at 08:34

    Really useful and simple binary. It just works.

  66. MCA   |  Wednesday, 07 March 2012 at 13:38

    Thanks, I shared the pain of the others, and now I share the joy :)

  67. Mike   |  Wednesday, 18 April 2012 at 20:09

    Thank you, thank you, thank you!

  68. greatghoul   |  Thursday, 03 May 2012 at 10:24

    I can’t tell more thanks, it spent me too much to find mysql-python for 64bit windows. thank you :)

  69. masa   |  Tuesday, 08 May 2012 at 12:21

    Thanks from japan!!!
    This was a great help to me!!!

  70. fzhang   |  Sunday, 13 May 2012 at 16:46

    Thank you so much. I’ve been unwilling to upgrade to python 2.7 because I can’t find this windows distribution. Now those days are gone. You are awesome. !!!

  71. Sid   |  Wednesday, 16 May 2012 at 20:51

    Thanks a ton…u got me going with my projects…

  72. wojtek   |  Tuesday, 22 May 2012 at 14:31

    Windows 7, 64-bit, Python 2.7.3 64-bit – all works great. Thank you.

  73. Installing Python Django MySQL with Apache on Windows | The Inspiration Within …   |  Monday, 28 May 2012 at 06:19

    [...] MySQLdb Binaries Finally found them at [...]

  74. farshad   |  Tuesday, 05 June 2012 at 20:14

    thank you …..

  75. yuren   |  Tuesday, 19 June 2012 at 05:19

    i really need to say thank you to you!

  76. Nathan O'Brien   |  Thursday, 21 June 2012 at 21:55

    As so many have said before, thank you. After spending hours just reading what it was going to take to compile this myself, it was a God send to find your website, and that you had already done so. When we finish revamping our website, there will be a link to yours. Thank you again.

  77. Dikpal   |  Tuesday, 03 July 2012 at 20:34

    Thanks a lot. It helped me save a lot of time.

  78. Pedro   |  Tuesday, 03 July 2012 at 22:37

    Graciaaaaaasss!!!!! Thanks!!!!!

  79. Helica   |  Wednesday, 11 July 2012 at 13:10

    You, sir, are my hero! From this day the 19th of September shall be known as Ioannislalopoulosday! (At least in my agenda) Thank you so very much.

  80. Qiyuan Liu   |  Wednesday, 11 July 2012 at 23:44

    Thank you so much. Finally, I found it here!!!

  81. croc   |  Monday, 16 July 2012 at 03:13

    Thank you!
    Like most here, you have saved me heaps of stuffing around. It just worked!!!
    Awesome :)

  82. Lee   |  Saturday, 04 August 2012 at 07:13


  83. Albert   |  Friday, 17 August 2012 at 09:53

    Thank you very much,it solves my problem,you do great job

  84. vess   |  Thursday, 30 August 2012 at 14:44

    10x mate, this works

  85. Jorge   |  Tuesday, 07 May 2013 at 20:44

    Dear Sirs
    May I ask you if you could kindly publish again such important downloads for mysql-python 1.2.3 and 1.2.4?.
    Currently trying to download just says “file does not exist.
    Your kind support is highly appreciated.
    Thanks in advance and Best regards!

  86. Ioannis Lalopoulos   |  Wednesday, 08 May 2013 at 01:17

    Thank you for your report. The mysql-python files are back in their place.

  87.   |  Wednesday, 08 May 2013 at 03:49

    Hi just wanted to give you a quick heads up and let you know a few of the images aren’t loading correctly. I’m not
    sure why but I think its a linking issue. I’ve tried it in two different web browsers and both show the same outcome.

  88. Ioannis Lalopoulos   |  Thursday, 09 May 2013 at 11:40

    Thank you for the heads up, images are fixed now.

  89. Adri   |  Sunday, 06 October 2013 at 21:03

    Great!!! works fine in Win7 64 Thanks!!

  90. onepeak   |  Wednesday, 23 October 2013 at 13:45

    Thank you very much. I wasted over 1 hour to try to solve the Django UnicodeDecodeError using 64bits Python and 32bits MySQLdb on Windows 8. After uninstalling the 32bits MySQLdb and installing your 64bits one, it finally works. You saved me.

  91. Lar   |  Friday, 01 November 2013 at 17:34

    Luckily I found this before I put much effort in trying to integrate them!

  92. Guoqing   |  Friday, 03 January 2014 at 09:09

    Thanks a lot ! trac project should reference this link in their doc

Leave a Reply