简体   繁体   English

当我将 db postgres 更改为 mysql 时,它显示 Django 2026、SSL 连接错误

[英]When i change db postgres to mysql,Its showing Django 2026, SSL connection error

I change my database postgres to sql,Now its showing ssl error我将我的数据库 postgres 更改为 sql,现在它显示 ssl 错误

Nothing expect or try, just need answer, so thank you没有期望或尝试,只需要答案,所以谢谢

Paste following command in setting ( init.py )file在设置 ( init.py ) 文件中粘贴以下命令

import pymysql
pymysql.install_as_MySQLdb()

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

相关问题 django.db.utils.OperationalError: (2026, 'SSL 连接错误:SSL_CTX_set_tmp_dh 失败') - django.db.utils.OperationalError: (2026, 'SSL connection error: SSL_CTX_set_tmp_dh failed') Django AWS RDS MySQL 错误:(2026,'SSL 连接错误:错误:00000001:lib(0):func(0):reason(1)') - Django AWS RDS MySQL Error: (2026, 'SSL connection error: error:00000001:lib(0):func(0):reason(1)') Django 操作错误:(2026,'SSL 连接错误:SSL_CTX_set_tmp_dh 失败') - Django Operation error: (2026, 'SSL connection error: SSL_CTX_set_tmp_dh failed') 与 MySQL dB 的 SSL 连接失败 - SSL connection to MySQL dB failed Django 连接远程 Mysql OperationalError 2026 - Django Connect remote Mysql OperationalError 2026 Heroku Django db Postgres错误 - Heroku Django db postgres error Django连接mysql错误,显示目标计算机被主动拒绝 - Django connection mysql error, showing the target computer actively refused 为什么在Django中的postgres db连接的connection.timezone为None? - why connection.timezone is None for postgres db connection in django? 使用 docker 时出现 Postgres 服务器连接错误? - I have Postgres server connection error when I use docker? 如何在pythonanywhere上将Django db更改为MySQL? - How can I change a Django db to MySQL on pythonanywhere?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM