Hi,
I get this error when I want to import my csv file with custom fields:
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '='
Here's the logfile: https://www.toolwebshop.be/administrator/index.php?option=com_csvi&view=logs&layout=logreader&tmpl=component&run_id=103
See attachement for csv file.
Technische_referenties_import_Powertools.csv
Thank you for your support!
- ThijsGaublomme
- RO CSVI
- Wednesday, 31 May 2017
- Subscribe via email
0
Accepted Answer
Pending Moderation
Hello Thijs,
This error is not a problem with your import file but with your database structure. The error you see is because some parts in your database will only accept utf8_general_ci data and others only utf8mb4_general_ci. This mix, the database can't handle. What needs to be done is set everything to the same collation, this should be utf8mb4_general_ci everywhere. Once that is done, you can run the import again.
I believe Admin Tools has an option to fix the collation in your database, otherwise it needs to be done with a program like PhpMyAdmin.
This error is not a problem with your import file but with your database structure. The error you see is because some parts in your database will only accept utf8_general_ci data and others only utf8mb4_general_ci. This mix, the database can't handle. What needs to be done is set everything to the same collation, this should be utf8mb4_general_ci everywhere. Once that is done, you can run the import again.
I believe Admin Tools has an option to fix the collation in your database, otherwise it needs to be done with a program like PhpMyAdmin.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Hi Roland,
I've just spent the pas 2 hours updating every table in my database to collation utf8mb4_general_ci.
Tested the import again and I get the same error again...
Er is een fout opgetreden tijdens de import. Hieronder het antwoord dat is ontvangen van de server.
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '='
Hope you can help me with this...
Thank you.
Kind regards,
Thijs
I've just spent the pas 2 hours updating every table in my database to collation utf8mb4_general_ci.
Tested the import again and I get the same error again...
Er is een fout opgetreden tijdens de import. Hieronder het antwoord dat is ontvangen van de server.
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation '='
Hope you can help me with this...
Thank you.
Kind regards,
Thijs
Accepted Answer
Pending Moderation
Hello Thijs,
The error may not have changed because not all fields are utf8mb4 yet. Have a look at the attached screenshot. The text fields have their own setting. Perhaps only change that where needed for the product and category tables and then give it a test run.
I've just spent the pas 2 hours updating every table in my database to collation utf8mb4_general_ci.You had so many tables and fields that were not utf8mb4?
The error may not have changed because not all fields are utf8mb4 yet. Have a look at the attached screenshot. The text fields have their own setting. Perhaps only change that where needed for the product and category tables and then give it a test run.
Attachments (1)
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
Accepted Answer
Pending Moderation
Thx Roland,
I'll look into it and have a go.
Any Idea which tables to check? Only the CSVI tables or the virtuemart tables as well?
I'll look into it and have a go.
Any Idea which tables to check? Only the CSVI tables or the virtuemart tables as well?
Accepted Answer
Pending Moderation
Hello Thijs,
This concerns the VirtueMart tables. You would most likely be looking at the virtuemart_products and virtuemart_products_nl tables. The same goes for the virtuemart_categories. The fields you need to check are the text fields but I guess you see it soon enough once you have the fields list like I posted in the screenshot.
This concerns the VirtueMart tables. You would most likely be looking at the virtuemart_products and virtuemart_products_nl tables. The same goes for the virtuemart_categories. The fields you need to check are the text fields but I guess you see it soon enough once you have the fields list like I posted in the screenshot.
Kind regards,
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
RolandD
=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »