将Python 2.6.1与MySQLdb连接 [英] connecting Python 2.6.1 with MySQLdb

查看:144
本文介绍了将Python 2.6.1与MySQLdb连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Python 2.6.1,并且想连接到MySQLdb,我在系统中安装了mySQL,然后尝试连接 MySQL-python-1.2.2.win32-py2.6 来自 http://www.codegood.com/archives/4 网站,但无法正常工作 在运行我的应用程序时,它说没有名为MySQLdb的模块

I am using Python 2.6.1 and I want to connect to MySQLdb, I installed mySQL in my system, and I am trying to connect MySQL-python-1.2.2.win32-py2.6 from http://www.codegood.com/archives/4 site but its not working while running my application its saying that No module named MySQLdb

请任何人为我提供MySQLdb的正确设置.

please any one provide me the proper setup for MySQLdb.

预先感谢

推荐答案

我发现的Windows最佳设置:

The best setup for Windows that I've found:

http://www.codegood.com/downloads?dl_cat=2

删除了原始链接(现在是一个广告农场:()

Removed original link (it's an ad farm now :( )

这篇关于将Python 2.6.1与MySQLdb连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆