当前位置:网站首页>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
保存后再次运行即可成功。
边栏推荐
- 0-1背包問題(一)
- 洛谷P1102 A-B数对(二分,map,双指针)
- Take you to use wxpy to create your own chat robot (plus wechat interface basic data visualization)
- 入门C语言基础问答
- Accounting regulations and professional ethics [1]
- ucorelab4
- C语言学习笔记
- Cost accounting [16]
- Record of brushing questions with force deduction -- complete knapsack problem (I)
- Hospital privacy screen Industry Research Report - market status analysis and development prospect forecast
猜你喜欢

12306: mom, don't worry about me getting the ticket any more (1)

Learning record: Tim - capacitive key detection

Learning record: understand systick system timer and write delay function
![[C language] twenty two steps to understand the function stack frame (pressing the stack, passing parameters, returning, bouncing the stack)](/img/3a/aadde60352c42199ba287a6997acfa.jpg)
[C language] twenty two steps to understand the function stack frame (pressing the stack, passing parameters, returning, bouncing the stack)

ucore lab5

数据在内存中的存储&载入内存,让程序运行起来

JS --- detailed explanation of JS facing objects (VI)

力扣刷题记录

ucore Lab 1 系统软件启动过程

学习记录:串口通信和遇到的错误解决方法
随机推荐
学习记录:串口通信和遇到的错误解决方法
Hospital privacy screen Industry Research Report - market status analysis and development prospect forecast
Learning record: understand systick system timer and write delay function
Accounting regulations and professional ethics [2]
Accounting regulations and professional ethics [4]
Market trend report, technical innovation and market forecast of Chinese hospital respiratory humidification equipment
STM32学习记录:LED灯闪烁(寄存器版)
Alice and Bob (2021牛客暑期多校训练营1)
Matlab comprehensive exercise: application in signal and system
Truck History
Learning record: use STM32 external input interrupt
Learning record: how to perform PWM output
LeetCode#36. Effective Sudoku
Accounting regulations and professional ethics [5]
编程到底难在哪里?
Cost accounting [23]
ucore lab7
China medical check valve market trend report, technical dynamic innovation and market forecast
力扣刷题记录
Flex --- detailed explanation of flex layout attributes