当前位置:网站首页>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.
边栏推荐
- MySQL fuzzy query and sorting by matching degree
- Cross compile HelloWorld with cmake
- Leetcode- distribute cookies - simple
- Leetcode- key formatting - simple
- Hump naming and underlining
- Implementation of concurrent programming locking
- Sentinel series introduction to service flow restriction
- A simple recursion problem of linked list
- arrayList && linkedList
- Timeout thread log for tongweb
猜你喜欢

Three paradigms of MySQL

Zero copy technology

Service architecture diagram of Nacos series

Four shardingsphere JDBC sharding strategies

Getclassloader() returns null, getclassloader() gets null

About Evaluation Metrics

Quartz basic use

Django uses redis to store sessions starting from 0

2 first experience of drools

MongoDB 多字段聚合Group by
随机推荐
13 cancelendevent of a flowable end event and compensationthrowing of a compensation event
= = relation between int and integer
Browser screenshot method (long screenshot, node screenshot, designated area screenshot)
19 calling subprocess (callactivity) of a flowable task
Leetcode- third largest number - simple
中断处理过程
Leetcode Hamming distance simple
2021.9.29学习日志-Restful架构
Unity game optimization [Second Edition] learning record 6
Vagrant virtual machine installation, disk expansion and LAN access tutorial
AUTOSAR actual combat tutorial pdf version
MySQL installation in Linux Environment
Shardingsphere JDBC exception: no table route info
The reason why the process cannot be shut down after a spark job is executed and the solution
Power of leetcode-4 - simple
Source code analysis of ArrayList
Unity game optimization (version 2) learning record 7
How to Algorithm Evaluation Methods
11 signalthrowingevent and signalboundaryevent of flowable signal event
How MySQL optimizes the use of joint index ABC