使用mysql数据库,或者进行更新sqlite版本为最新的
参考 https://www.cnblogs.com/wishwzp/p/7113403.html
继续报错
The GPG keys listed for the “MySQL 5.7 Community Server” repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository.
参考 https://www.cnblogs.com/volun/p/15824751.html
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
密码无法找到
https://blog.csdn.net/weixin_34318272/article/details/94277529?spm=1001.2101.3001.6661.1&utm_medium=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_antiscanv2&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1.pc_relevant_antiscanv2&utm_relevant_index=1
密码重置
https://www.cnblogs.com/wangbaobao/p/7087032.html
pip install myclient 安装出错
参考
https://blog.csdn.net/h106140873/article/details/100889576
使用mysql8出现的错误 settings设置
WARNINGS:
?: (mysql.W002) MySQL Strict Mode is not set for database connection ‘default’
HINT: MySQL’s Strict Mode fixes many data integrity problems in MySQL, such as data truncation upon insertion, by escalating warnings into errors. It is strongly recommended you activate it. See:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'gx_day16', # 数据库名字
'USER': 'root',
'PASSWORD': '******',
'HOST': '127.0.0.1', # 那台机器安装了MySQL
'PORT': 3306,
'OPTIONS': {
# 'init_command': 'SET default_storage_engine=INNODB',
'init_command': "SET sql_mode='STRICT_TRANS_TABLES'", # MySQL Strict Mode设置
}
},
}