mysql-connector-python-2.0.2-py3.3.msi Installation failed -


i want use "import mysqldb" downloaded windows (architecture independent), msi installer python 3.3 address :http://dev.mysql.com/downloads/connector/python/ after installation complete,tell me installation failed

import mysqldb traceback (most recent call last): file "", line 1, in importerror: no module named 'mysqldb' please tell me how do。thx.

ps:i use mysql server 5.5 , python33

take @ example in documentation , find module coming oracle's mysql connector not named mysqldb, mysql (or rather mysql.connector):

import mysql.connector  cnx = mysql.connector.connect(user='scott', password='tiger',                               host='127.0.0.1',                               database='employees') cnx.close() 

from: http://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -