zoukankan      html  css  js  c++  java
  • Django2.2连接MySQL问题解决

    报错一:

    django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

    解决方法:编辑文件,注释掉如下行:

    version = Database.version_info
    # if version < (1, 3, 13):
    #     raise ImproperlyConfigured('mysqlclient 1.3.13 or newer is required; you have %s.' % Database.__version__)

    报错二:

    File "D:datagitee.comExamOnlinevenvlibsite-packagesdjangodbackendsmysqloperations.py", line 146, in last_executed_query query = query.decode(errors='replace') AttributeError: 'str' object has no attribute 'decode'

    解决方法:

    编辑文件operations.py,注释掉如下行

    query = getattr(cursor, '_executed', None)
    # if query is not None:
    # query = query.decode(errors='replace')
    return query
  • 相关阅读:
    opendressinghash //use resize array
    ChainingHash
    Hash function
    stack && queue
    random_select
    counting sort
    master theorem
    各排序算法及其比较
    视图中添加主键的方法
    oracle表空间的扩展
  • 原文地址:https://www.cnblogs.com/miaocbin/p/11775107.html
Copyright © 2011-2022 走看看