[From nobody Thu Jul 23 11:19:12 2026
Received: (at submit) by bugs.debian.org; 19 Oct 2016 16:49:56 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-11.1 required=4.0 tests=BAYES_00,FOURLA,
 FROMDEVELOPER, HAS_PACKAGE, RCVD_IN_BRBL_LASTEXT, RCVD_IN_PBL,
 RCVD_IN_SORBS_DUL, 
 RDNS_DYNAMIC,XMAILER_REPORTBUG,X_DEBBUGS_CC autolearn=ham autolearn_force=no
 version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 15; hammy, 149; neutral, 49; spammy,
 1. spammytokens:0.954-+--H*r:bugs.debian.org hammytokens:0.000-+--H*x:6.6.6,
 0.000-+--H*UA:6.6.6, 0.000-+--H*M:reportbug, 0.000-+--H*MI:reportbug,
 0.000-+--systemd
Return-path: &lt;fsateler@debian.org&gt;
Received: from pc-130-210-30-200.cm.vtr.net ([200.30.210.130]
 helo=[192.168.0.116])
 by buxtehude.debian.org with esmtp (Exim 4.84_2)
 (envelope-from &lt;fsateler@debian.org&gt;) id 1bwu3w-0004iQ-IH
 for submit@bugs.debian.org; Wed, 19 Oct 2016 16:49:56 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Felipe Sateler &lt;fsateler@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: mysql-server-5.7: Unable to switch from mariadb to mysql,
 &quot;downgrade&quot; is aborted
Message-ID: &lt;147689579402.3680.2763238301306117082.reportbug@felipepc&gt;
X-Mailer: reportbug 6.6.6
Date: Wed, 19 Oct 2016 13:49:54 -0300
X-Debbugs-Cc: fsateler@debian.org
Delivered-To: submit@bugs.debian.org

Package: mysql-server-5.7
Version: 5.7.15-1
Severity: important


Switching from mariadb to mysql fails with the following error message:

Aborting downgrade from (at least) 10.0 to 5.7.
If are sure you want to downgrade to 5.7, remove the file
/var/lib/mysql/debian-*.flag and try installing again.


The test[1] seems to be a bit naive, given that mariadb uses the same
flag file.

Mariadb and mysql are supposed to be drop-in replacements, so switching
between them should be supported.


[1] https://sources.debian.net/src/mysql-5.7/5.7.15-1/debian/mysql-server-5.7.preinst/#L81-L87

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
]