tags:

views:

119

answers:

1

Hi.. My mysql database is located on a remote machine... So i dont have any local copy of mysql on my local machine.. i get the registry key error... (file not found)...

serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified

I think it requires to have a local copy of mysql... How do i install the mysqldb for database residing on another machine???

A: 

You will indeed need a local copy of MySQL in order to compile the MySQL extension for Python. This page seems to contain a step-by-step guide for Windows.

However, you might have some luck with a pre-compiled MySQL module. This should work for Python 2.6.

Tamás
hey thank you... This pre compiled module worked... :).. thanks a lot
apoorva