当前位置:网站首页>mysql导入数据库报错 [Err] 1273 – Unknown collation: ‘utf8mb4_0900_ai_ci’
mysql导入数据库报错 [Err] 1273 – Unknown collation: ‘utf8mb4_0900_ai_ci’
2022-07-06 09:26:00 【豆包程序员】
最近有些人问,为什么在涉导入mysql脚本的时候会出现[Err] 1273 – Unknown collation: ‘utf8mb4_0900_ai_ci’,那么今天我就详细的解说下这个问题,
说起这个问题,我们需要了解mysql的一些原理。一般的功能需求是我们需要将我们的数据库脚本导入,并且需要成功的导入才可以运行项目。那为什么在导入的的时候,他会出现错误呢。
带着 这个疑问,请你认真阅读以下文章,认真领会.
高版本导出的数据,比如mysql8,到mysql5.7 恢复就报错
[Err] 1273 - Unknown collation: 'utf8mb4_0900_ai_ci'
我知道是字符集编码的问题,但是我将数据库的编码改成了utf8mb4之后再导入也一样报错,导入文件的时候并没有utf8mb4选项
baidu之后发现解决方案。
解决方案:
将文件内的所有
utf8mb4_0900_ai_ci 换成 utf8_general_ci
utf8mb4 换成 utf8
保存后再次运行即可成功。
边栏推荐
- 学习记录:USART—串口通讯
- Cost accounting [24]
- STM32学习记录:输入捕获应用
- Eslint--- error: newline required at end of file but not found (EOL last) solution
- 数据在内存中的存储&载入内存,让程序运行起来
- Visual analysis of data related to crawling cat's eye essays "sadness flows upstream into a river" | the most moving film of Guo Jingming's five years
- LeetCode#62. Different paths
- LeetCode#198. raid homes and plunder houses
- Matlab comprehensive exercise: application in signal and system
- 学习记录:STM32F103 时钟系统概述工作原理
猜你喜欢
随机推荐
Research Report on pharmaceutical R & D outsourcing service industry - market status analysis and development prospect forecast
Intensive learning notes: Sutton book Chapter III exercise explanation (ex17~ex29)
UCORE Lab 1 system software startup process
China medical check valve market trend report, technical dynamic innovation and market forecast
Jupyter installation and use tutorial
JS --- detailed explanation of JS DOM (IV)
学习记录:使用STM32外部输入中断
学习记录:使用STM32F1看门狗
STM32學習記錄:輸入捕獲應用
JS --- JS function and scope (II)
TCP的三次握手与四次挥手
Cost accounting [15]
csapp shell lab
学习记录:TIM—基本定时器
学习记录:USART—串口通讯
Research Report on market supply and demand and strategy of geosynthetics industry in China
ucore lab 2
Matlab example: two expressions of step function
Determine the Photo Position
Winter vacation daily question - maximum number of balloons