Some of the information here may be outdated, please check the book instead

Hey guys;

I use web2py along with other development frameworks (InstantDjango, InstantRuby, XAMPP), on a portable USB thumb-drive. One problem I have solved is getting MySQLdb working in web2py. I have tried the following, and it seems to work:

Download and install ActiveState Python2.5 for Windows( ). This installs python to C:\Python25\

Download and install the MySQL client ( MySQL-python-1.2.2.win32-py2.5.exe ) from Sourceforge( ). This installs files to C:\Python25\Lib\site-packages

Copy the following directories and files from C:\Python25\Lib\site-packages to the Lib\site-packages directory for web2py( %web2py%\Lib\site-packages ), (create the 2 subdirectories Lib and site-packages if they do not exist):


Start the web2py.exe application. Note that the WARNING:root:no MySQLdb driver message should not show up on the console now.


PS: The licence information displayed when installing MySQL-python-1.2.2.win32-py2.5.exe says that it is Free Software, so I will try to upload a zip file archive of the MySQLdb files to the Google Group ( ) for others to use.

© 2008-2010 by Massimo Di Pierro - All rights reserved - Powered by web2py - design derived from a theme by the earlybird
The content of this book is released under the Artistic License 2.0 - Modified content cannot be reproduced.