当前位置:网站首页>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
保存后再次运行即可成功。
边栏推荐
- Research Report on pharmaceutical R & D outsourcing service industry - market status analysis and development prospect forecast
- 用C语言写网页游戏
- Cost accounting [24]
- 力扣刷题记录--完全背包问题(一)
- Research Report of pharmaceutical solvent industry - market status analysis and development prospect prediction
- FSM and I2C experiment report
- Perinatal Software Industry Research Report - market status analysis and development prospect forecast
- Cost accounting [14]
- Learning record: understand systick system timer and write delay function
- 编程到底难在哪里?
猜你喜欢

ucore lab 2

FSM和i2c实验报告

Determine the Photo Position

差分(一维,二维,三维) 蓝桥杯三体攻击

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

Learning record: how to perform PWM output

UCORE Lab 1 system software startup process

C语言数组的概念

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

C语言是低级和高级的分水岭
随机推荐
LeetCode#412. Fizz Buzz
ucorelab4
ucore lab5
LeetCode#118. Yanghui triangle
Learning record: USART serial communication
Jupyter installation and use tutorial
Learning records: serial communication and solutions to errors encountered
CS zero foundation introductory learning record
Learning record: use STM32 external input interrupt
nodejs爬虫
cs零基础入门学习记录
The wechat red envelope cover designed by the object is free! 16888
Learning record: how to perform PWM output
0 - 1 problème de sac à dos (1)
Accounting regulations and professional ethics [1]
How to build a nail robot that can automatically reply
JS --- detailed explanation of JS DOM (IV)
Leetcode notes - dynamic planning -day7
Research Report of pharmaceutical solvent industry - market status analysis and development prospect prediction
TCP的三次握手与四次挥手