Answers for "mysql import unknown collation: 'utf8mb4_0900_ai_ci'"

SQL
0

#1273 - Unknown collation: 'utf8mb4_0900_ai_ci'

find:
ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;
replace with:
ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
in your .sql file
Posted by: Guest on August-24-2021
0

Unknown collation: 'utf8mb4_0900_ai_ci'

I believe this error is caused because the local server and live server are running different versions of MySQL. To solve this:

Open the sql file in your text editor
Find and replace all utf8mb4_unicode_520_ci with utf8mb4_unicode_ci
Save and upload to a fresh mySql db
Posted by: Guest on October-05-2021

Code answers related to "mysql import unknown collation: 'utf8mb4_0900_ai_ci'"

Code answers related to "SQL"

Browse Popular Code Answers by Language