【问题标题】:ByteFlow installation Error on WindowsWindows 上的 ByteFlow 安装错误
【发布时间】:2010-05-15 12:15:46
【问题描述】:

当我尝试在我的 Windows 开发机器上安装 ByteFlow 时,我收到以下 MySQL 错误,我不知道该怎么办,请给我一些建议。非常感谢!!!

E:\byteflow-5b6d964917b5>manage.py syncdb
!!! Read about DEBUG in settings_local.py and then remove me !!!
!!! Read about DEBUG in settings_local.py and then remove me !!!
J:\Program Files\Python26\lib\site-packages\MySQLdb\converters.py:37: DeprecationWarning: the sets module is deprecated
  from sets import BaseSet, Set
Creating table auth_permission
Creating table auth_group
Creating table auth_user
Creating table auth_message
Creating table django_content_type
Creating table django_session
Creating table django_site
Creating table django_admin_log
Creating table django_flatpage
Creating table actionrecord
Creating table blog_post
Traceback (most recent call last):
  File "E:\byteflow-5b6d964917b5\manage.py", line 11, in <module>
    execute_manager(settings)
  File "J:\Program Files\Python26\lib\site-packages\django\core\management\__init__.py", line 362, in execute_manager
    utility.execute()
  File "J:\Program Files\Python26\lib\site-packages\django\core\management\__init__.py", line 303, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "J:\Program Files\Python26\lib\site-packages\django\core\management\base.py", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "J:\Program Files\Python26\lib\site-packages\django\core\management\base.py", line 222, in execute
    output = self.handle(*args, **options)
  File "J:\Program Files\Python26\lib\site-packages\django\core\management\base.py", line 351, in handle
    return self.handle_noargs(**options)
  File "J:\Program Files\Python26\lib\site-packages\django\core\management\commands\syncdb.py", line 78, in handle_noargs
    cursor.execute(statement)
  File "J:\Program Files\Python26\lib\site-packages\django\db\backends\util.py", line 19, in execute
    return self.cursor.execute(sql, params)
  File "J:\Program Files\Python26\lib\site-packages\django\db\backends\mysql\base.py", line 84, in execute
    return self.cursor.execute(query, args)
  File "J:\Program Files\Python26\lib\site-packages\MySQLdb\cursors.py", line 166, in execute
    self.errorhandler(self, exc, value)
  File "J:\Program Files\Python26\lib\site-packages\MySQLdb\connections.py", line 35, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')

【问题讨论】:

  • 我在同步一个依赖行星的应用程序时也遇到了这个错误。我也在寻找解决方案 (+1)

标签: django comments blogs


【解决方案1】:

尝试将MySql默认存储引擎改为MyISAM。

【讨论】:

    猜你喜欢
    • 2011-10-18
    • 2012-11-27
    • 2014-07-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-09
    • 2017-07-17
    • 1970-01-01
    相关资源
    最近更新 更多