当前位置:网站首页>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
保存后再次运行即可成功。
边栏推荐
- D - Function(HDU - 6546)女生赛
- 动态规划前路径问题
- JS --- detailed explanation of JS DOM (IV)
- ucore lab7
- Research Report on market supply and demand and strategy of China's land incineration plant industry
- ucorelab4
- Flex --- detailed explanation of flex layout attributes
- Accounting regulations and professional ethics [3]
- C 基本语法
- Market trend report, technical innovation and market forecast of Chinese hospital respiratory humidification equipment
猜你喜欢

C语言是低级和高级的分水岭

Learning record: understand systick system timer and write delay function

C语言学习笔记

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

Eslint--- error: newline required at end of file but not found (EOL last) solution

Learning records: serial communication and solutions to errors encountered

ucore lab5

The wechat red envelope cover designed by the object is free! 16888

STM32如何使用STLINK下载程序:点亮LED跑马灯(库版本)

ucore Lab 1 系统软件启动过程
随机推荐
LeetCode#2062. Count vowel substrings in strings
ucore lab7
ucore lab 2
UCORE Lab 1 system software startup process
VS2019初步使用
Es6--- two methods of capturing promise status as failed
7-1 懂的都懂 (20 分)
Research Report of pharmaceutical solvent industry - market status analysis and development prospect prediction
Indonesian medical sensor Industry Research Report - market status analysis and development prospect forecast
STM32 learning record: input capture application
毕业才知道IT专业大学生毕业前必做的1010件事
Cost accounting [13]
JS --- detailed explanation of JS DOM (IV)
Cost accounting [13]
Cost accounting [14]
ucorelab4
1010 things that college students majoring in it must do before graduation
通俗地理解什么是编程语言
Crawler series of learning while tapping (3): URL de duplication strategy and Implementation
0-1背包問題(一)