{"id":255,"date":"2026-10-13T09:50:06","date_gmt":"2026-10-13T07:50:06","guid":{"rendered":"https:\/\/www.cisilino.com\/?p=255"},"modified":"2026-10-29T20:00:32","modified_gmt":"2026-10-29T19:00:32","slug":"mysql-wont-start-debian-12","status":"publish","type":"post","link":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/","title":{"rendered":"MySQL won&#8217;t start after a Debian 12 upgrade: cause and fix"},"content":{"rendered":"<h2 class=\"wp-block-heading\">The symptom: mysql.service in a failed state<\/h2>\n<p>MySQL won&#8217;t start: the service shows as failed and the log reports the error <code>Can't read dir of '\/etc\/mysql\/mariadb.conf.d\/'<\/code>:<\/p>\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp\" alt=\"MySQL won't start: a cylinder representing a database with an orange warning circle beside it\" width=\"1200\" height=\"630\"\/><\/figure>\n<pre class=\"wp-block-code\"><code># service mysql status\n\u00d7 mysql.service - MySQL Community Server\n     Loaded: loaded (\/lib\/systemd\/system\/mysql.service; enabled; preset: enabled)\n     Active: failed (Result: exit-code)\n     Status: \"Server startup in progress\"\n\nmysqld: Can't read dir of '\/etc\/mysql\/mariadb.conf.d\/' (OS errno 2 - No such file or directory)\nmysqld: &#91;ERROR] Stopped processing the 'includedir' directive in file \/etc\/mysql\/my.cnf at line 29.\nmysqld: &#91;ERROR] Fatal error in defaults handling. Program aborted!\nsystemd&#91;1]: Failed to start mysql.service - MySQL Community Server.<\/code><\/pre>\n<p>Checking the installed packages, MySQL is there as expected (<code>mysql-community-server<\/code> 8.0 packages from the official Oracle repository):<\/p>\n<pre class=\"wp-block-code\"><code>dpkg -l | grep mysql<\/code><\/pre>\n<h2 class=\"wp-block-heading\">The cause: the my.cnf alternative points to mariadb.cnf<\/h2>\n<p>On Debian the file <code>\/etc\/mysql\/my.cnf<\/code> is not a real file but a link managed by <strong>update-alternatives<\/strong>. Several packages can register their own version and, in automatic mode, the one with the highest priority wins.<\/p>\n<p>During the upgrade the <strong>mariadb-common<\/strong> package was installed (and later removed), which registers <code>\/etc\/mysql\/mariadb.cnf<\/code> with <strong>priority 500<\/strong>, higher than <code>\/etc\/mysql\/mysql.cnf<\/code> (priority 300). The package was removed but not fully purged (state <code>rc<\/code>), so its configuration stayed active. On line 29 of that file there is an include of <code>\/etc\/mysql\/mariadb.conf.d\/<\/code>, a directory that does not exist. MySQL reads the configuration, cannot find the directory and stops, which is why MySQL won&#8217;t start.<\/p>\n<p><strong>Good news:<\/strong> the data in <code>\/var\/lib\/mysql<\/code> has not been touched. It is only a configuration problem.<\/p>\n<h2 class=\"wp-block-heading\">Diagnosis: check where my.cnf points<\/h2>\n<pre class=\"wp-block-code\"><code>ls -l \/etc\/mysql\/my.cnf \/etc\/alternatives\/my.cnf\nupdate-alternatives --display my.cnf\nsed -n '25,32p' \/etc\/mysql\/my.cnf\ndpkg -l | grep -i mariadb<\/code><\/pre>\n<p>If this is the problem, the output will look like this:<\/p>\n<pre class=\"wp-block-code\"><code>\/etc\/alternatives\/my.cnf -&gt; \/etc\/mysql\/mariadb.cnf\n\/etc\/mysql\/my.cnf -&gt; \/etc\/alternatives\/my.cnf\n\nmy.cnf - modalit\u00e0 automatica\n  la versione migliore del collegamento \u00e8 \/etc\/mysql\/mariadb.cnf\n  il collegamento attualmente punta a \/etc\/mysql\/mariadb.cnf\n\/etc\/mysql\/mariadb.cnf - priorit\u00e0 500\n\/etc\/mysql\/my.cnf.fallback - priorit\u00e0 100\n\/etc\/mysql\/mysql.cnf - priorit\u00e0 300\n\n!includedir \/etc\/mysql\/conf.d\/\n!includedir \/etc\/mysql\/mariadb.conf.d\/\n\nrc  mariadb-common   1:10.11.18-0+deb12u1   all   MariaDB common configuration files<\/code><\/pre>\n<h2 class=\"wp-block-heading\">Step-by-step fix<\/h2>\n<h3 class=\"wp-block-heading\">1. Back up the configuration<\/h3>\n<pre class=\"wp-block-code\"><code>cp -a \/etc\/mysql \/root\/etc-mysql-backup-$(date +%F)<\/code><\/pre>\n<h3 class=\"wp-block-heading\">2. Remove the mariadb-common leftovers<\/h3>\n<p>The purge removes <code>mariadb.cnf<\/code> and its entry in update-alternatives:<\/p>\n<pre class=\"wp-block-code\"><code>apt purge mariadb-common<\/code><\/pre>\n<h3 class=\"wp-block-heading\">3. Point my.cnf back to mysql.cnf<\/h3>\n<pre class=\"wp-block-code\"><code>update-alternatives --remove my.cnf \/etc\/mysql\/mariadb.cnf 2&gt;\/dev\/null\nupdate-alternatives --set my.cnf \/etc\/mysql\/mysql.cnf<\/code><\/pre>\n<h3 class=\"wp-block-heading\">4. Check the configuration<\/h3>\n<pre class=\"wp-block-code\"><code>update-alternatives --display my.cnf\ncat \/etc\/mysql\/my.cnf\nmy_print_defaults mysqld<\/code><\/pre>\n<p>Now <code>my.cnf<\/code> must point to <code>\/etc\/mysql\/mysql.cnf<\/code> and include <code>\/etc\/mysql\/conf.d\/<\/code> and <code>\/etc\/mysql\/mysql.conf.d\/<\/code>. If <code>my_print_defaults mysqld<\/code> prints the parameters without errors, the configuration is correct.<\/p>\n<h3 class=\"wp-block-heading\">5. Start MySQL<\/h3>\n<pre class=\"wp-block-code\"><code>systemctl start mysql\nsystemctl status mysql\njournalctl -u mysql -n 50 --no-pager<\/code><\/pre>\n<h2 class=\"wp-block-heading\">If MySQL won&#8217;t start and my.cnf is not a symbolic link<\/h2>\n<p>If <code>\/etc\/mysql\/my.cnf<\/code> is a regular file or <code>\/etc\/mysql\/mysql.cnf<\/code> does not exist, you can recreate the configuration by hand:<\/p>\n<pre class=\"wp-block-code\"><code>mv \/etc\/mysql\/my.cnf \/etc\/mysql\/my.cnf.mariadb.bak\ncat &gt; \/etc\/mysql\/my.cnf &lt;&lt;'EOF'\n!includedir \/etc\/mysql\/conf.d\/\n!includedir \/etc\/mysql\/mysql.conf.d\/\nEOF\nmkdir -p \/etc\/mysql\/conf.d\nsystemctl start mysql<\/code><\/pre>\n<h2 class=\"wp-block-heading\">Quick temporary fix when MySQL won&#8217;t start<\/h2>\n<p>If you need to bring the database back online right away, just create the missing directory. It is only a stopgap, though. MySQL would keep reading the configuration meant for MariaDB. Better to apply the complete fix as soon as possible.<\/p>\n<pre class=\"wp-block-code\"><code>mkdir \/etc\/mysql\/mariadb.conf.d &amp;&amp; systemctl start mysql<\/code><\/pre>\n<h2 class=\"wp-block-heading\">How to stop it happening again<\/h2>\n<p>It is worth finding out which upgrade installed MariaDB, by looking at the apt history:<\/p>\n<pre class=\"wp-block-code\"><code>grep -i -B3 -A3 mariadb \/var\/log\/apt\/history.log*<\/code><\/pre>\n<p>To stop <code>mariadb-common<\/code> being reinstalled in the future you can block it with an APT pin at a negative priority:<\/p>\n<pre class=\"wp-block-code\"><code>cat &gt; \/etc\/apt\/preferences.d\/no-mariadb &lt;&lt;'EOF'\nPackage: mariadb-*\nPin: release *\nPin-Priority: -1\nEOF<\/code><\/pre>\n<p>After every major upgrade it is also good practice to check the state of the alternative with <code>update-alternatives --display my.cnf<\/code>. Before the next upgrade, read the <a href=\"https:\/\/www.debian.org\/releases\/bookworm\/amd64\/release-notes\/\" target=\"_blank\" rel=\"noopener\">Debian 12 release notes<\/a> for known issues. A related case is <a href=\"https:\/\/www.cisilino.com\/en\/2026\/10\/17\/mysql-5-7-docker-nftables-firewall\/\">MySQL 5.7 in Docker protected with nftables<\/a>.<\/p>\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n<h3 class=\"wp-block-heading\">Will I lose my database data?<\/h3>\n<p>No. The problem only concerns the configuration files in <code>\/etc\/mysql<\/code>; the data in <code>\/var\/lib\/mysql<\/code> stays intact.<\/p>\n<h3 class=\"wp-block-heading\">Why did Debian choose mariadb.cnf?<\/h3>\n<p>Because the <code>my.cnf<\/code> alternative was in automatic mode and <code>mariadb.cnf<\/code> has priority 500, higher than the 300 of <code>mysql.cnf<\/code>. With <code>update-alternatives --set<\/code> the choice becomes manual and no longer changes by itself.<\/p>\n<h3 class=\"wp-block-heading\">Does it apply to Ubuntu too?<\/h3>\n<p>Yes, the <code>update-alternatives<\/code> mechanism for <code>my.cnf<\/code> is the same on Ubuntu and on the other Debian-derived distributions.<\/p>\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n<p>The error <strong>&#8220;Can&#8217;t read dir of \/etc\/mysql\/mariadb.conf.d\/&#8221;<\/strong> after a Debian upgrade does not mean MySQL is damaged. It means a leftover MariaDB configuration has stayed active through update-alternatives. By removing <code>mariadb-common<\/code> with <code>apt purge<\/code> and setting <code>my.cnf<\/code> back to <code>mysql.cnf<\/code>, MySQL works normally again. If MySQL won&#8217;t start after an upgrade, check update-alternatives first.<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After a Debian 12 upgrade MySQL won&#8217;t start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.<\/p>\n","protected":false},"author":1,"featured_media":747,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"wpai_generated_summary":"","footnotes":""},"categories":[361],"tags":[300,296,292,332],"class_list":["post-255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-servers-databases","tag-debian-12-en","tag-mariadb-en","tag-mysql-en","tag-upgrade"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.4 - aioseo.com -->\n\t<meta name=\"description\" content=\"After a Debian 12 upgrade MySQL won&#039;t start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"matteocisilino\"\/>\n\t<meta name=\"google-site-verification\" content=\"_A-1f0dO30IDVHfP9muflI8kHQs-H4YOi8WLUkYzuLE\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.4\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Matteo Cisilino - Guide su WordPress, server e sicurezza\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"MySQL won&#039;t start after a Debian 12 upgrade\" \/>\n\t\t<meta property=\"og:description\" content=\"After a Debian 12 upgrade MySQL won&#039;t start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-10-13T07:50:06+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-29T19:00:32+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"MySQL won&#039;t start after a Debian 12 upgrade\" \/>\n\t\t<meta name=\"twitter:description\" content=\"After a Debian 12 upgrade MySQL won&#039;t start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#blogposting\",\"name\":\"MySQL won't start after a Debian 12 upgrade\",\"headline\":\"MySQL won&#8217;t start after a Debian 12 upgrade: cause and fix\",\"author\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/mysql-wont-start-debian-12-upgrade.webp\",\"width\":1200,\"height\":630,\"caption\":\"MySQL won't start: a cylinder representing a database with an orange warning circle beside it\"},\"datePublished\":\"2026-10-13T09:50:06+02:00\",\"dateModified\":\"2026-10-29T20:00:32+01:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#webpage\"},\"articleSection\":\"Servers and databases, Debian 12, MariaDB, MySQL, upgrade\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/category\\\/servers-databases\\\/#listItem\",\"name\":\"Servers and databases\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/category\\\/servers-databases\\\/#listItem\",\"position\":2,\"name\":\"Servers and databases\",\"item\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/category\\\/servers-databases\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#listItem\",\"name\":\"MySQL won&#8217;t start after a Debian 12 upgrade: cause and fix\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#listItem\",\"position\":3,\"name\":\"MySQL won&#8217;t start after a Debian 12 upgrade: cause and fix\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/category\\\/servers-databases\\\/#listItem\",\"name\":\"Servers and databases\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#organization\",\"name\":\"Matteo Cisilino\",\"description\":\"Guide su WordPress, server e sicurezza\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/logo-cisilino-512.png\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#organizationLogo\",\"width\":512,\"height\":512,\"caption\":\"Logo: un cerchio a sinistra che si divide in cerchi pi\\u00f9 piccoli\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/#author\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/\",\"name\":\"matteocisilino\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/639872265f0661e8aee8924ba9d756b00ea816f8286fab99a5116c729d49618f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"matteocisilino\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#webpage\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/\",\"name\":\"MySQL won't start after a Debian 12 upgrade\",\"description\":\"After a Debian 12 upgrade MySQL won't start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/author\\\/matteocisilino\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/wp-content\\\/uploads\\\/2026\\\/10\\\/mysql-wont-start-debian-12-upgrade.webp\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#mainImage\",\"width\":1200,\"height\":630,\"caption\":\"MySQL won't start: a cylinder representing a database with an orange warning circle beside it\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/2026\\\/10\\\/13\\\/mysql-wont-start-debian-12\\\/#mainImage\"},\"datePublished\":\"2026-10-13T09:50:06+02:00\",\"dateModified\":\"2026-10-29T20:00:32+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/\",\"name\":\"Matteo Cisilino\",\"description\":\"Guide su WordPress, server e sicurezza\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cisilino.com\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"MySQL won't start after a Debian 12 upgrade","description":"After a Debian 12 upgrade MySQL won't start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.","canonical_url":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"_A-1f0dO30IDVHfP9muflI8kHQs-H4YOi8WLUkYzuLE","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#blogposting","name":"MySQL won't start after a Debian 12 upgrade","headline":"MySQL won&#8217;t start after a Debian 12 upgrade: cause and fix","author":{"@id":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/#author"},"publisher":{"@id":"https:\/\/www.cisilino.com\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp","width":1200,"height":630,"caption":"MySQL won't start: a cylinder representing a database with an orange warning circle beside it"},"datePublished":"2026-10-13T09:50:06+02:00","dateModified":"2026-10-29T20:00:32+01:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#webpage"},"isPartOf":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#webpage"},"articleSection":"Servers and databases, Debian 12, MariaDB, MySQL, upgrade"},{"@type":"BreadcrumbList","@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/#listItem","position":1,"name":"Home","item":"https:\/\/www.cisilino.com\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/category\/servers-databases\/#listItem","name":"Servers and databases"}},{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/category\/servers-databases\/#listItem","position":2,"name":"Servers and databases","item":"https:\/\/www.cisilino.com\/en\/category\/servers-databases\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#listItem","name":"MySQL won&#8217;t start after a Debian 12 upgrade: cause and fix"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#listItem","position":3,"name":"MySQL won&#8217;t start after a Debian 12 upgrade: cause and fix","previousItem":{"@type":"ListItem","@id":"https:\/\/www.cisilino.com\/en\/category\/servers-databases\/#listItem","name":"Servers and databases"}}]},{"@type":"Organization","@id":"https:\/\/www.cisilino.com\/en\/#organization","name":"Matteo Cisilino","description":"Guide su WordPress, server e sicurezza","url":"https:\/\/www.cisilino.com\/en\/","logo":{"@type":"ImageObject","url":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/logo-cisilino-512.png","@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#organizationLogo","width":512,"height":512,"caption":"Logo: un cerchio a sinistra che si divide in cerchi pi\u00f9 piccoli"},"image":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/#author","url":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/","name":"matteocisilino","image":{"@type":"ImageObject","@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/639872265f0661e8aee8924ba9d756b00ea816f8286fab99a5116c729d49618f?s=96&d=mm&r=g","width":96,"height":96,"caption":"matteocisilino"}},{"@type":"WebPage","@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#webpage","url":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/","name":"MySQL won't start after a Debian 12 upgrade","description":"After a Debian 12 upgrade MySQL won't start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/www.cisilino.com\/en\/#website"},"breadcrumb":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#breadcrumblist"},"author":{"@id":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/#author"},"creator":{"@id":"https:\/\/www.cisilino.com\/en\/author\/matteocisilino\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp","@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#mainImage","width":1200,"height":630,"caption":"MySQL won't start: a cylinder representing a database with an orange warning circle beside it"},"primaryImageOfPage":{"@id":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/#mainImage"},"datePublished":"2026-10-13T09:50:06+02:00","dateModified":"2026-10-29T20:00:32+01:00"},{"@type":"WebSite","@id":"https:\/\/www.cisilino.com\/en\/#website","url":"https:\/\/www.cisilino.com\/en\/","name":"Matteo Cisilino","description":"Guide su WordPress, server e sicurezza","inLanguage":"en-GB","publisher":{"@id":"https:\/\/www.cisilino.com\/en\/#organization"}}]},"og:locale":"en_GB","og:site_name":"Matteo Cisilino - Guide su WordPress, server e sicurezza","og:type":"article","og:title":"MySQL won't start after a Debian 12 upgrade","og:description":"After a Debian 12 upgrade MySQL won't start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.","og:url":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/","og:image":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp","og:image:secure_url":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp","og:image:width":1200,"og:image:height":630,"article:published_time":"2026-10-13T07:50:06+00:00","article:modified_time":"2026-10-29T19:00:32+00:00","twitter:card":"summary_large_image","twitter:title":"MySQL won't start after a Debian 12 upgrade","twitter:description":"After a Debian 12 upgrade MySQL won't start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.","twitter:image":"https:\/\/www.cisilino.com\/wp-content\/uploads\/2026\/10\/mysql-wont-start-debian-12-upgrade.webp"},"aioseo_meta_data":{"post_id":"255","title":"MySQL won't start after a Debian 12 upgrade","description":"After a Debian 12 upgrade MySQL won't start and the logs mention mariadb.conf.d. How to identify the cause and fix it without touching your data.","keywords":null,"keyphrases":{"focus":{"keyphrase":"mysql won't start"}},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-10-29 09:22:00","updated":"2026-10-29 21:57:55","focus_keyword":"mysql won't start debian 12","additional_keywords":null,"truseo_locale":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.cisilino.com\/en\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.cisilino.com\/en\/category\/servers-databases\/\" title=\"Servers and databases\">Servers and databases<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tMySQL won\u2019t start after a Debian 12 upgrade: cause and fix\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.cisilino.com\/en\/"},{"label":"Servers and databases","link":"https:\/\/www.cisilino.com\/en\/category\/servers-databases\/"},{"label":"MySQL won&#8217;t start after a Debian 12 upgrade: cause and fix","link":"https:\/\/www.cisilino.com\/en\/2026\/10\/13\/mysql-wont-start-debian-12\/"}],"_links":{"self":[{"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":2,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"predecessor-version":[{"id":897,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/posts\/255\/revisions\/897"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/media\/747"}],"wp:attachment":[{"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cisilino.com\/en\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}