文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>MySQL-python-1.2.0 安装

MySQL-python-1.2.0 安装

时间:2006-06-23  来源:kai0200

首先需要mysql的原码包我用的是mysql-5.0.22 解压开MySQL-python-1.2.0.tar.gz cd MySQL-python-1.2.0 vi _mysql.c 修改include #include "structmember.h"
#include "/root/mysql-5.0.22/include/mysql.h"
#include "/root/mysql-5.0.22/include/mysqld_error.h"
#include "/root/mysql-5.0.22/include/errmsg.h"
然后修改setup.py mysqlclient = os.getenv('mysqlclient', 'mysqlclient')   export mysqlversion="5.0.22"
export mysqlclient="mysqlclient_r"
export mysqloptlibs="ssl crypto"
export mysqlclient="mysqlclient"
  setup.py 会调用mysql_conf cp /usr/local/mysql/bin/mysql_config  /bin/ cp /usr/local/mysql/bin/mysql  /bin/   python setup.py build python setup.py install 安装完成以后的放在 /usr/local/lib/python2.4/site-packages/MySQLdb/constants
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载