Chinaunix首页 | 论坛 | 博客
  • 博客访问: 358220
  • 博文数量: 49
  • 博客积分: 2709
  • 博客等级: 少校
  • 技术积分: 890
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-01 16:19
文章分类

全部博文(49)

文章存档

2013年(1)

2012年(5)

2011年(5)

2010年(5)

2009年(6)

2008年(27)

我的朋友

分类:

2008-07-11 10:59:51

# mysql-python 1.2.2
#

编辑site.cfg
修改mysql_config绝对路径
安全线程->false
#

  1 [options]
  2 # embedded: link against the embedded server library
  3 # threadsafe: use the threadsafe client
  4 # static: link against a static library (probably required for embedded)
  5
  6 embedded = False
  7 #threadsafe = True  
  8 threadsafe = False (修改为False)
  9 static = False
 10
 11 # The path to mysql_config.
 12 # Only use this if mysql_config is not on your PATH, or you have some weird
 13 # setup that requires it.
 14 mysql_config = /usr/local/mysql/bin/mysql_config (指定)
 15
 16 # The Windows registry key for MySQL.
 17 # This has to be set for Windows builds to work.
 18 # Only change this if you have a different version.
 19 registry_key = SOFTWARE\MySQL AB\MySQL Server 5.0

 

 

shell>python setup.py build
shell>puthon setup.py install

阅读(1609) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~