[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#860970: release-notes: MariaDB vs MySQL section 2.2.3 needs clarifying on how to perform the upgrade

Hi Vincent,

Thanks for trying to improve my proposal, I wasn't quite happy with it

On 26-04-17 06:57, Vincent McIntyre wrote:
> I don't think the release team want upgrades to depend on backports,
> so I don't that's a viable option here.

I had the problem with this suggestion as well, but I didn't understand
the MySQL/MariaDB upgrade path better than that.

> But let's go back a step - you're saying that
> if:   you have a jessie system with mysql-server-5.x
>       and you dist-upgrade,
>       without explicitly installing default-mysql-server
> then: mysql-server-5.x gets uninstalled
>       and no mariadb-server-* package gets installed ?
> If correct, that's a big problem.

I believe what you state here is true, as that is what I experienced on
my upgrade. When I upgraded, there wasn't mentioning of this yet (or I
didn't spot it) and it was exactly the reason why I went to look in the
release notes to provide info. The info that I found was missing
essential details or the right tone to trigger the system administrator
into the right actions.

> What the text is trying to tell people to do is to dist-upgrade,
> then install default-mysql-server. That second action should
> initiate the uninstall of mysql-server-5.x and then install
> mariadb-server-10.1. Is that what you took from the text?
> If not, can you think of a way to make it clearer?

I believe the mysql-server-5.x is already removed during the
dist-upgrade. At least that is what happened on my system. But maybe you
mean 'apt upgrade' (without dist-). If that is what you mean (and I
guess that should work), the text is by far not clear.

So something like (fully untested):
  MariaDB is now the default MySQL variant in Debian, at version 10.1.
  The Stretch release introduces a new mechanism for switching the
  default variant, using metapackages created from the
  mysql-defaults source package.
  For example, installing the metapackage
  default-mysql-server will install
- Users who had
+ For upgrades from jessie, it is recommended to install
+ this metapackage after 'apt upgrade', but before 'apt dist-upgrade'
+ so that users who have
  mysql-server-5.5 or mysql-server-5.6 will have it
  removed and replaced by the MariaDB equivalent.
+ If no precaution is taken, mysql-server-5.x will be removed *without*
+ a replacement being installed.
  Similarly, installing default-mysql-client will install


By the way, I think it should be 'meta-package' or 'meta package'
instead of 'metapackage' in correct English, but I am no native speaker.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: