[debian-mysql] Bug#947553: mariadb-10.3: debian.cnf [mysql_upgrade] basedir option ignored

Daniel Lewart lewart3 at gmail.com
Sat Dec 28 06:22:00 GMT 2019


Package: src:mariadb-10.3
Version: 1:10.3.20-1
Severity: minor
Tags: patch

MariaDB and MySQL Packaging Team,

# systemctl start mariadb.service
starts MariaDB just fine, but generates a log message:
    /etc/mysql/debian-start[nnnnn]: /usr/bin/mysql_upgrade: \
	the '--basedir' option is always ignored

The automatically generated /etc/mysql/debian.cnf includes:
	[mysql_upgrade]
	...
	basedir  = /usr

However, mysql_upgrade(1) says:
	--basedir=path
	Old option accepted for backward compatibility but ignored.

Below is an **untested** patch.

Thank you!
Daniel Lewart
Urbana, IL
---
diff -ru a/mariadb-server-10.3.postinst b/mariadb-server-10.3.postinst
--- a/mariadb-server-10.3.postinst	2019-11-11 15:55:37.000000000 -0600
+++ b/mariadb-server-10.3.postinst	2019-12-28 00:00:00.000000000 -0600
@@ -137,7 +137,6 @@
       echo "user     = root"                                             >>$dc
       echo "password = "                                                 >>$dc
       echo "socket   = $mysql_rundir/mysqld.sock"                        >>$dc
-      echo "basedir  = /usr"                                             >>$dc
     fi
     # Keep it only root-readable, as it always was
     chown 0:0 $dc
###



More information about the pkg-mysql-maint mailing list