<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Is there any objections not to change DB collation to utf8mb4 ?]]></title>
		<link>https://forum.iredmail.org/topic20255-is-there-any-objections-not-to-change-db-collation-to-utf8mb4.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20255.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Is there any objections not to change DB collation to utf8mb4 ?.]]></description>
		<lastBuildDate>Sun, 14 Jan 2024 14:32:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Is there any objections not to change DB collation to utf8mb4 ?]]></title>
			<link>https://forum.iredmail.org/post88070.html#p88070</link>
			<description><![CDATA[<p>You can convert them to utf8mb4, and iRedMail should switch to it too in the future.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 14 Jan 2024 14:32:25 +0000</pubDate>
			<guid>https://forum.iredmail.org/post88070.html#p88070</guid>
		</item>
		<item>
			<title><![CDATA[Is there any objections not to change DB collation to utf8mb4 ?]]></title>
			<link>https://forum.iredmail.org/post88028.html#p88028</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release):&nbsp; 1.6.8<br />- Deployed with iRedMail Easy or the downloadable installer? installer<br />- Linux/BSD distribution name and version:&nbsp; FreeBSD 13.1-RELEASE<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL<br />- Web server (Apache or Nginx): nginx<br />- Manage mail accounts with iRedAdmin-Pro? yes<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====<br />Hello,<br />I have the well known error of mix collation:<br /></p><div class="codebox"><pre><code>Jan  6 00:24:53 client postfix/proxymap[43711]: warning: mysql:/usr/local/etc/postfix/mysql/transport_maps_user.cf: query failed: Illegal mix of collations (utf8mb3_general_ci,IMPLICIT) and (utf8mb4_general_ci,COERCIBLE) for operation &#039;=&#039;
Jan  6 00:24:53 client postfix/trivial-rewrite[42662]: warning: proxy:mysql:/usr/local/etc/postfix/mysql/transport_maps_user.cf lookup error for &quot;Lo?c.guilhomond@example.com&quot;
Jan  6 00:24:53 client postfix/trivial-rewrite[42662]: warning: transport_maps lookup failure</code></pre></div><p>according to MySQL:<br /></p><div class="codebox"><pre><code>root@127.0.0.1 [vmail]&gt; show create table domain;
[...]
ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci |</code></pre></div><p>BUT proxymap is using utf8mb4 by default (as set in proxymap man page)<br />Proxymap may be configured, but for postfix 3.9+ only (available port version is 3.8+ now)</p><p>So, my question is:<br />is there anything that will make ALTER TABLE .. utf8mb4 impossible ?<br />Do you have any other/better solution to handle this error ?</p><div class="codebox"><pre><code>alter table admin convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table alias convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table alias_domain convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table anyone_shares convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table deleted_mailboxes convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table domain convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table domain_admins convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table forwardings convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table last_login convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table mailbox convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table maillist_owners convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table moderators convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table recipient_bcc_domain convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table recipient_bcc_user convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table sender_bcc_domain convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table sender_bcc_user convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table sender_relayhost convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table share_folder convert to character set utf8mb4 collate utf8mb4_general_ci;
alter table used_quota convert to character set utf8mb4 collate utf8mb4_general_ci;</code></pre></div><p>Thank you.<br />Nicolas.</p>]]></description>
			<author><![CDATA[null@example.com (nicolasb827)]]></author>
			<pubDate>Sat, 06 Jan 2024 00:00:28 +0000</pubDate>
			<guid>https://forum.iredmail.org/post88028.html#p88028</guid>
		</item>
	</channel>
</rss>
