Link to home
Start Free TrialLog in
Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

asked on

MySQL Collation

I am trying to import a .sql into a blank database in PHPMyAdmin
The Collation is utf8_unicode_ci

The database tables in the .sql file are:
ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;

I get a collation error telling me that the collation format is unrecognised

How do I proceed with this, please?
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

what's the version of your MySQL database?

Do you have the collation option utf8mb4_unicode_ci to be selected there?

if not mistaken there was some changes to the default collation in different version of MySQL, which changed from utf8 to utf8mb4
Avatar of doctorbill

ASKER

version 5.0.2-dev
Any intention to upgrade your MySQL 5.0.x to a higher version? MySQL 5.0.x is pretty obsolete now
Trouble is it's on a hosting site - Plesk control panel
The PHP version I am importing to is 7.3.1.4
That is where the error is
sql server version 5.5.55
phpMyAdmin 4.9.0.1
what happens if I just change the collation reference in the .sql file
are you able to create the blank database with collation utf8mb4_unicode_ci instead?

sql server version 5.5.55

you mean MySQL or SQL Server ver 5.5.55?
Mysql
How do I change the database collation
If I select another one in phpmyadmin it keeps reverting back
I change it in the Server connection collation in phpmyadmin
Just keeps reverting back
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect - now imported
Thanks all
Thanks again
You're welcome.