简体   繁体   English

无法使用 mysql 在 django 中迁移

[英]Cannot migrate in django using mysql

I'm trying to migrate my data from sqlite to mysql database but when I'm migrating the models, i'm getting the following error:我正在尝试将我的数据从 sqlite 迁移到 mysql 数据库,但是当我迁移模型时,我收到以下错误:

RuntimeWarning: Got an error checking a consistent migration history performed for database connection 'default': (2059, "Plugin http could not be loaded: The specified module could not be found. Library path is 'http.dll'")

django.db.utils.OperationalError: (2059, "Plugin http could not be loaded: The specified module could not be found. Library path is 'http.dll'")

what can be the problem?可能是什么问题?

I'm using Django 4.0.5, python 3.10.2, mysqlclient 2.1.1我正在使用 Django 4.0.5、python 3.10.2、mysqlclient 2.1.1

My Bad....i had http://127.0.0.1 instead of 127.0.0.1 in my db configuration.我的坏......我的数据库配置中有http://127.0.0.1而不是 127.0.0.1 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM