Comments on: Migrating to utf8mb4: Things to Consider https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/ Tue, 20 Feb 2024 11:16:13 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Vito Meuli https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/#comment-10974270 Tue, 20 Feb 2024 11:16:13 +0000 https://www.percona.com/blog/?p=80533#comment-10974270 The query to check index length problems fails for me on my MySql 8.0.36, I can’t understand why. It says “syntax error”.
I rewrote it as following (I hope I did it well):

]]>
By: Sveta Smirnova https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/#comment-10974202 Wed, 08 Nov 2023 16:11:03 +0000 https://www.percona.com/blog/?p=80533#comment-10974202 It depends on your circumstances.

For example, if you use REDUNDANT or COMPACT row formats and the formula shows that after conversion, index length would exceed 767 bytes but would not exceed 3072 bytes, you can convert your tables into DYNAMIC or COMPRESSED row formats.

If your tables already use DYNAMIC or COMPRESSED row formats and the index length will increase 3072 bytes, you can only modify the index definition, for example, by using column prefixes instead of full column length.

]]>
By: Natarajan Chidhambharam https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/#comment-10974201 Tue, 07 Nov 2023 21:41:03 +0000 https://www.percona.com/blog/?p=80533#comment-10974201 Under the Index storage requirement – “Once you have identified such indexes, check the columns and adjust the table definition accordingly.” Can you please advise what we should do if we have identify such indexes from the query?

]]>
By: Sveta Smirnova https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/#comment-10973779 Wed, 05 Oct 2022 12:18:28 +0000 https://www.percona.com/blog/?p=80533#comment-10973779 No. INNODB_SYS_INDEXES and INNODB_SYS_TABLES were renamed to INNODB_INDEXES and INNODB_TABLES in MySQL 8.0

]]>
By: Mark Gruenberg https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/#comment-10973778 Tue, 04 Oct 2022 20:05:48 +0000 https://www.percona.com/blog/?p=80533#comment-10973778 Is this an error in the query :

FROM information_schema.INNODB_INDEXES i JOIN information_schema.INNODB_TABLES t USING(TABLE_ID)

should it be
FROM information_schema.INNODB_SYS_INDEXES i JOIN information_schema.INNODB_SYS_TABLES t USING(TABLE_ID)

]]>
By: Sveta Smirnova https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/#comment-10973577 Fri, 01 Apr 2022 11:56:16 +0000 https://www.percona.com/blog/?p=80533#comment-10973577 It depends if their utf8mb4 implementation was ported from MySQL or not.If ported: performance should be same. If not: I haven’t seen benchmarks that compare utf8mb4 and utf8mb3 performance in MariaDB.

]]>
By: dimus https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/#comment-10973575 Thu, 31 Mar 2022 12:13:06 +0000 https://www.percona.com/blog/?p=80533#comment-10973575 >It is faster than utf8mb3
And what about performance utf8mb3 vs utf8mb4 in MariaDB?

]]>
By: Bernt Marius Johnsen https://www.percona.com/blog/migrating-to-utf8mb4-things-to-consider/#comment-10973573 Tue, 29 Mar 2022 14:33:09 +0000 https://www.percona.com/blog/?p=80533#comment-10973573 Another issue worth mentioning: Migrating from utf8(mb3) to utf8mb4 may break unique constraints since the collations are not identical. See https://dev.mysql.com/blog-archive/mysql-8-0-collations-migrating-from-older-collations/ and https://dev.mysql.com/blog-archive/mysql-8-0-collations-migrating-from-older-collations-part-2/

]]>