This forum is no longer active. Please post your questions to our new community site

Forums Trac

install mysql bindings [windows]

Subscribe to install mysql bindings [windows] 4 post(s), 2 voice(s)

Avatar kubrik 2 post(s)


I thought there were Python bindings for MySQL included but I was wrong, so I would like to install them.
But, how to?

Thanks in advance for sharing any info.

Avatar Beltrán Rueda Administrator 3,714 post(s)


You can find the following file from Sourceforge MySQL-python-1.2.2.win32-py2.5.exe

To install it you have to run the following command:

your_installation_directory\python\Scripts\easy_install.exe MySQL-python-1.2.2.win32-py2.5.exe

Avatar kubrik 2 post(s)

Thanks for your fast reply, but it didnt worked…

MySQL_python-1.2.2-py2.5-win32.egg were successfully copyed to site-packages direcotry and pth file updated.

Please see attachment (logs)


Attached Files

Avatar Beltrán Rueda Administrator 3,714 post(s)


Please take a look to the 8.3 section in the README

8.3.1 Installing Trac plugins and Python eggs – NOTE FOR WINDOWS USERS

Currently, the easy_install Python script works a little funky on Windows.
We’re already working on fixing it, but installing Python eggs using the
mentioned operating systems needs a bit of extra tweaking. To install a
Trac plugin like TracSpamFilter, for example, you will need to follow the
guidelines available at , and after that,
stop your servers using the Start Menu Shortcuts and copy

  • python/DLLs
  • python/Lib

folders to

  • apache2/bin

overwriting its contents. That done, launch the servers again and everything
should work fine. If you need further advice and support, please post at and we’ll try to help.

This also applies when you want to install new python libraries.

Forums Trac