'default': {

        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'mysql',
        'USER': 'root',
        'HOST': '127.0.0.1',
        'PASSWORD': '123',
        'PORT': 3306,
        # show variables like 'character_set_database';
        # 修改字段字符编码
        # alter table spiders_weibo modify text longtext charset utf8mb4 collate utf8mb4_unicode_ci;
        'OPTIONS': {'charset': 'utf8mb4'},
    }

相关文章:

  • 2022-03-01
  • 2021-09-30
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2022-02-07
猜你喜欢
  • 2021-12-01
  • 2021-10-08
  • 2021-05-28
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案