当前位置:网站首页>django.db.utils. OperationalError: (2002, “Can‘t connect to local MySQL server through socket ‘/var/r
django.db.utils. OperationalError: (2002, “Can‘t connect to local MySQL server through socket ‘/var/r
2022-07-24 07:15:00 【Bevis_ OTL】
Django Report errors
problem :python3 manage.py makemigrations The error is as follows :
django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
terms of settlement :
django in settting.py Medium DATABASE Medium HOST It is amended as follows :
'HOST': '127.0.0.1',
reason :
If host is set to localhost, then a socket or pipe is used.
If host is set to 127.0.0.1, then the client is forced to use TCP/IP.
边栏推荐
- /etc/rc. Local setting UI program startup and self startup
- 传统电商红利消失,怎么进军新型社交电商?
- JMeter笔记2 | JMeter原理及测试计划要素
- Lambda expressions sort list objects in multiple fields
- Redis 主从机制
- chm文件打开时提示乱码
- Accumulation of project problems
- 处理树形结构数据
- [PTA] group programming ladder competition - Summary of exercises L3 (incomplete)
- 【Tips】创建版本控制项目的简单方法
猜你喜欢

C language from entry to soil function

电子商务时代,企业社交电商转型要做什么?

17. What is the situation of using ArrayList or LinkedList?

JMeter笔记2 | JMeter原理及测试计划要素

变量和数据类型(04)完结

C language from entry to soil (I)

重磅直播 | ORB-SLAM3系列代码讲解地图点(专题二)

Chapter007-FPGA学习之IIC总线EEPROM读取

JMeter notes 2 | JMeter principle and test plan elements

周杰伦直播超654万人观看,总互动量破4.5亿,助力快手再破纪录
随机推荐
STM32 ADC based on Hal library uses DMA multi-channel sampling and solves the problems encountered
Part II - C language improvement_ 2. Memory partition
Gimp custom screenshot
Decompress the anchor and enjoy 4000w+ playback, adding a new wind to the Kwai food track?
电子商务时代,企业社交电商转型要做什么?
[USB voltmeter and ammeter] Based on stm32f103c8t6 for Arduino
MySQL automatic generation creation time and update time
Vs2019 configuration running open3d example
Stm32h750vbt6 drives programmable gain amplifier module pga113 -- Hal Library Based on cubemx
C language from entry to Earth - array
FPGA实现AXI4总线的读写
树莓派换源
OWASP TOP10 penetration test
周杰伦直播超654万人观看,总互动量破4.5亿,助力快手再破纪录
Input the names of 10 people and output them in descending order
ROS starts non native nodes
"Big factory interview" JVM Chapter 21 questions and answers
B. Also Try Minecraft
我的创作纪念日
【LeetCode】11. 盛最多水的容器 - Go 语言题解