当前位置:网站首页>The SQL file of mysql8.0 was imported into version 5.5. There was a pit
The SQL file of mysql8.0 was imported into version 5.5. There was a pit
2022-06-13 05:50:00 【sjgeng111】
first : Character encoding problem
error :
Unknown collation: ‘utf8mb4_0900_ai_ci‘......
resolvent :
Manually modify sql file :
utf8mb4_0900_ai_ci Replace all with utf8_general_ci
utf8mb4 Replace with utf8
the second :TIMESTAMP Type problem
error :
Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT
The reason is when you give a timestamp Set to on updatecurrent_timestamp When , Other timestamp Fields need to be explicitly set default value . But if you have two timestamp Field , Set only the first to current_timestamp And the second one doesn't have a default , You're going to report a mistake
resolvent :
Set default values for several other fields :
DEFAULT '0000-00-00 00:00:00'
Third : Character length problem :
error :
Specified key was too long; max key length is 767 bytes
resolvent :
stay utf-8 Character set ,255 success ,utf-8 One character takes up 3 Bytes ,255*3=765 mysql5.6 The longest index is 767.
边栏推荐
- 移动端适配方案
- 2021.9.29学习日志-MIME类型
- Tongweb card, tongweb card, tongweb card
- Leetcode- intersection of two arrays ii- simple
- Unity game optimization (version 2) learning record 7
- Leetcode- string addition - simple
- Leetcode- complement of numbers - simple
- Mongodb Multi - field Aggregation group by
- Leetcode Timo attack - simple
- Leetcode- number of words in string - simple
猜你喜欢
Etcd understanding of microservice architecture
17 servicetask of flowable task
ffmpeg 下载后缀为.m3u8的视频文件
为什么那么多人讨厌A-Spice
Getclassloader() returns null, getclassloader() gets null
Sentinel series integrates Nacos and realizes dynamic flow control
Agile conflicts and benefits
Interrupt processing
powershell优化之一:提示符美化
软件测试——接口常见问题汇总
随机推荐
计算两个时间相差的天数(支持跨月、跨年)
Leetcode- minimum number of operations to make array elements equal - simple
Working principle of sentinel series (source code analysis)
Tongweb customs clearance guidelines
使用cmake交叉编译helloworld
Exception after repeated application redeployment on tongweb: application instance has been stopped already or outofmemoryerror:metaspace
Leetcode- number of words in string - simple
15 inclusivegateway and eventgateway of flowable gateway
AUTOSAR实战教程pdf版
The 13th week of the second semester of sophomore year
MongoDB 多字段聚合Group by
Source code analysis of ArrayList
How to set the import / export template to global text format according to the framework = (solve the problem of scientific counting)
JNDI configuration for tongweb7
Calculate the number of days between two times (supports cross month and cross year)
Ffmpeg download suffix is Video files for m3u8
9. Errorstartevent and errorboundaryevent of error events
顶部下滑沉浸式dialog
[China & some provinces and cities] JSON file for offline map visualization
Conf/tongweb Functions of properties