当前位置:网站首页>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.
边栏推荐
- = = relation between int and integer
- Unity game optimization [Second Edition] learning record 6
- Pychart professional edition's solution to SQL script error reporting
- Solve the problem of garbled code in the MySQL execution SQL script database in docker (no need to rebuild the container)
- 3. Postman easy to use
- 15 inclusivegateway and eventgateway of flowable gateway
- How to set the import / export template to global text format according to the framework = (solve the problem of scientific counting)
- Leetcode fizz buzz simple
- 顶部下滑沉浸式dialog
- Leetcode- first unique character in string - simple
猜你喜欢
Nacos series registry principle and source code analysis
Byte buddy print execution time and method link tracking
arrayList && linkedList
Web site learning and sorting
Config server configuration center of Nacos series
Timeout thread log for tongweb
10 signalstartevent and signalcatchingevent of flowable signal events
零拷贝技术
Mongodb Multi - field Aggregation group by
Service fusing and degradation of Note Series
随机推荐
JS output uincode code
Unity游戏优化[第二版]学习记录6
The problem of distinguishing and sharing sessions for multiple applications in tongweb
Vagrant virtual machine installation, disk expansion and LAN access tutorial
About Evaluation Metrics
How to Algorithm Evaluation Methods
Leetcode- find all missing numbers in the array - simple
ffmpeg 下载后缀为.m3u8的视频文件
SPI primary key generation strategy for shardingsphere JDBC
Leetcode- key formatting - simple
为什么那么多人讨厌A-Spice
Calculate the number of days between two times (supports cross month and cross year)
The 13th week of the second semester of sophomore year
Exception after repeated application redeployment on tongweb: application instance has been stopped already or outofmemoryerror:metaspace
Sentinel series introduction to service flow restriction
Pychart professional edition's solution to SQL script error reporting
Leetcode Timo attack - simple
软件测试——接口常见问题汇总
Django uses redis to store sessions starting from 0
Information collection for network security (2)