> > I did not find any code that would change the username and for recent
> > years the setting has said "user     = root", and before that it was
> > "user     = debian-sys-maint"
>
> This is (or used to be) the MySQL default. Is MySQL now also using the
> socket authentication and root?

Yes, also MySQL in Debian/Ubuntu has also moved to passwordless root
and no new install needs the debian.cnf file anymore.

> > One option could potentially be that if dbconfig-common does not find
> > the username, it could default to just "root".
>
> I guess that could work, if it works for MySQL as well. Or does MySQL
> still always create the filled /etc/mysql/debian.cnf file?

Yes, it will work for MySQL as well.


However, I am now about to merge on master the following change:
https://salsa.debian.org/mariadb-team/mariadb-10.5/-/commit/a6583c15226ad9a0ca37861e1bd01057bcff32a5

This would partially revert the debian.cnf change on new installs so
that dbconfig-common can again find the username entry, while at the
same time documenting that in the long run this file should be
obsoleted.

Reply via email to