<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — MySQL error after Debian 12 to 13 upgrade]]></title>
	<link rel="self" href="https://forum.iredmail.org/feed-atom-topic21189.xml" />
	<updated>2026-07-29T21:27:12Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.iredmail.org/topic21189-mysql-error-after-debian-12-to-13-upgrade.html</id>
		<entry>
			<title type="html"><![CDATA[Re: MySQL error after Debian 12 to 13 upgrade]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92140.html#p92140" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>- /etc/mysql/debian.cnf is used to perform upgrade by mariadb package.<br />- You can run &quot;mysql_upgrade&quot; (or &quot;mysql_upgrade --force&quot;) command manually.</p></blockquote></div><p>I see that now in debian-start, sorry. Running mysql_upgrade manually works. But I figured out what the issue is. /etc/mysql/debian.cnf is symlinked to /root/.my.cnf </p><p>I see in mariadb&#039;s systemd unit file, ProtectHome is set to true (Prevent accessing /home, /root and /run/user) so I assume this is why debian.cnf was inaccessible and it would abort. </p><p>Making debian.cnf an actual file (with the text from /root/.my.cnf copy pasted) in /etc/mysql and with the same permissions (600) fixes it and it can then be accessed. </p><p>I also realized this isn&#039;t a debian 13 issue, one of my mail servers is still on debian 12 and exhibits the same behavior which means these servers were as well when they were on debian 12, i just never noticed. Older iredmail servers I have, debian.cnf is an actual file but on newer ones, it&#039;s symlinked to /root/.my.cnf which is inaccessible. I believe due to ProtectHome = true in the mariadb unit file.</p>]]></content>
			<author>
				<name><![CDATA[dice]]></name>
				<uri>https://forum.iredmail.org/user135309.html</uri>
			</author>
			<updated>2026-07-29T21:27:12Z</updated>
			<id>https://forum.iredmail.org/post92140.html#p92140</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: MySQL error after Debian 12 to 13 upgrade]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92139.html#p92139" />
			<content type="html"><![CDATA[<p>- /etc/mysql/debian.cnf is used to perform upgrade by mariadb package.<br />- You can run &quot;mysql_upgrade&quot; (or &quot;mysql_upgrade --force&quot;) command manually.</p>]]></content>
			<author>
				<name><![CDATA[ZhangHuangbin]]></name>
				<uri>https://forum.iredmail.org/user2.html</uri>
			</author>
			<updated>2026-07-29T09:10:02Z</updated>
			<id>https://forum.iredmail.org/post92139.html#p92139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[MySQL error after Debian 12 to 13 upgrade]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post92138.html#p92138" />
			<content type="html"><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.8.4<br />- Deployed with iRedMail Easy or the downloadable installer? downloadable installer<br />- Linux/BSD distribution name and version: Debian 13.6<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? no<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>My server was originally on Debian 12 and iRedMail version 1.6.8. I upgraded to Debian 13 today (I had already upgraded to iRedMail 1.8.4 prior). Everything went really smoothly and I followed the guide to fix what needed to be fixed and all went without incident.</p><p>The only issue I have, which might not even be an issue and I only noticed it from journald, is with MySQL. (MariaDB version 11.8.6):</p><div class="codebox"><pre><code>Jul 28 19:05:02 *DOMAIN* debian-start[1459]: Could not open required defaults file: /etc/mysql/debian.cnf
Jul 28 19:05:02 *DOMAIN* debian-start[1459]: Fatal error in defaults handling. Program aborted</code></pre></div><p>To be clear, MariaDB is active and running and ready for connections/is functional. I see the same error on another mail server I deployed about two months ago and upgraded from Debian 12 to 13 as well today (it was originally on iRedMail 1.8.2).</p>]]></content>
			<author>
				<name><![CDATA[dice]]></name>
				<uri>https://forum.iredmail.org/user135309.html</uri>
			</author>
			<updated>2026-07-28T23:44:17Z</updated>
			<id>https://forum.iredmail.org/post92138.html#p92138</id>
		</entry>
</feed>
