搭建服务器 出现错误ImportError: this is MySQLdb

在Fedora Core 6 安装Bigworld服务器工具,在/home/zhu/mf/bigworld/tools/server/install/目录下输入./install_tools.py命令,出现错误

  • Installing system services

  • Uninstalling existing system service 'bw_stat_logger'

  • Installing package: bw_stat_logger
    Starting stat_logger: [ OK ]

  • Uninstalling existing system service 'bw_message_logger'

  • Installing package: bw_message_logger
    Starting message_logger: [ OK ]

  • Uninstalling existing system service 'bw_web_console'

  • Installing package: bw_web_console
    Starting web_console: Traceback (most recent call last):
    File "./start-web_console.py", line 15, in ?
    import MySQLdb
    File "/home/zhu/mf/bigworld/tools/server/pycommon/redist/mysql_python/MySQLdb/__init__.py", line 22, in ?
    raise ImportError, "this is MySQLdb version %s, but _mysql is version %r" %\
    ImportError: this is MySQLdb version (1, 2, 1, 'final', 2), but _mysql is version (1, 2, 1, 'final', 1)
    [FAILED]
    Check '/var/log/bigworld/web_console.log' for errors
    求大神帮忙解答,谢谢!

根据你的错误,你的Bigworld中MySQLdb的版本比你安装的mysql版本高,升级一下mysql数据库