Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install mysql connector [duplicate]

Tags:

python

mysql

I have downloaded mysqlDb, and while installing it I am getting errors like:

C:\Documents and Settings\naresh\Desktop\MySQL-python-1.2.3c1>setup.py build
Traceback (most recent call last):
File "C:\Documents and Settings\naresh\Desktop\MySQL-python-1.2.3c1 
\setup.py",line15,      in  
metadata, options = get_config()
File "C:\Documents and Settings\naresh\Desktop\MySQL-python-1.2.3c1
\setup_windows.py",    line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified

What can I do to address this?

like image 401
Naresh Avatar asked Nov 26 '09 11:11

Naresh


People also ask

How do I fix a duplicate entry in MySQL replication?

Try to locate duplicate entry and delete that entry from slave DB. Once you have deleted the old entry then execute stop slave and then start slave on slave DB. Most probably replication will start again and come back to normal. If it gets stuck again for same error for some other record then repeat same steps.

Can I have 2 versions of MySQL?

This indicates that using the MySQL community installer, we can install a different version of MySQL but cannot install multiple instances of the same version. To run multiple instances, the second instance of MySQL must install as a windows service. The installation must be performed manually using a command prompt.


1 Answers

The registry key need to patch in that file, kindly refer to this thread

Integrating MySQL with Python in Windows

or download prebuilt binary

http://www.codegood.com/archives/4

like image 134
YOU Avatar answered Oct 01 '22 18:10

YOU