P粉0813607752023-08-29 11:02:52
You can try:
Open the sql file through a text editor to find and replace all
utf8mb4 to utf8
Import again.
P粉5473628452023-08-29 10:41:20
Your version does not support this character set, I believe 5.5.3
introduced it. You should upgrade mysql to the version used to export this file.
The error is obvious: you set a certain character set in the code, but your version of mysql does not support it and therefore does not know it.
Based on https://dev.mysql. com/doc/refman/5.5/en/charset-unicode-utf8mb4.html:
So maybe you could set it to utf8, close your eyes and hope, but it depends on your data and I wouldn't recommend it.