当前位置:网站首页>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.
边栏推荐
- NVIDIA Jetson Nano/Xavier NX 扩容教程
- 3. Postman easy to use
- How slow is the application system on tongweb? How dead is it?
- Top slide immersive dialog
- Leetcode- reverse string - simple
- Function and application scenario of field setaccessible() method
- Service fusing and degradation of Note Series
- ArrayList loop removes the pit encountered
- Three paradigms of MySQL
- Hump naming and underlining
猜你喜欢

Browser screenshot method (long screenshot, node screenshot, designated area screenshot)

Information collection for network security (2)

Feel the power of shardingsphere JDBC through the demo

890. Find and Replace Pattern

Tongweb card, tongweb card, tongweb card
![[China & some provinces and cities] JSON file for offline map visualization](/img/ea/0c552e1e133f693b9902c54c2e09c8.jpg)
[China & some provinces and cities] JSON file for offline map visualization

为什么那么多人讨厌A-Spice

What happens when the MySQL union index ABC encounters a "comparison operator"?

1 Introduction to drools rule engine (usage scenarios and advantages)

Source code analysis of ArrayList
随机推荐
Sentinel series hot spot current limiting
Concurrent programming -- what is threading?
9. Errorstartevent and errorboundaryevent of error events
Solve the problem of garbled code in the MySQL execution SQL script database in docker (no need to rebuild the container)
How to view tongweb logs correctly?
Unity game optimization [Second Edition] learning record 6
NVIDIA Jetson Nano/Xavier NX 扩容教程
2021.9.29 learning log restful architecture
软件测试——接口常见问题汇总
Timeout thread log for tongweb
Tongweb adapts to openrasp
Four shardingsphere JDBC sharding strategies
The reason why the process cannot be shut down after a spark job is executed and the solution
JNDI configuration for tongweb7
Django uploads local binaries to the database filefield field
Working principle of sentinel series (concept)
Concurrent programming -- countdownlatch combined with thread pool
Django uses redis to store sessions starting from 0
Leetcode judge subsequence simple
Leetcode- complement of numbers - simple