[MDEV-30939] MariaDB 10.6.12 Some issue of 'mysql.server' Created: 2023-03-28  Updated: 2023-11-28

Status: Confirmed
Project: MariaDB Server
Component/s: Server
Affects Version/s: 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11
Fix Version/s: 10.5, 10.6, 10.11

Type: Bug Priority: Minor
Reporter: An JaeHyun Assignee: Rucha Deodhar
Resolution: Unresolved Votes: 0
Labels: None


 Description   

I installed MariaDB 10.6.12 with tar.gz file. (/MARIA/mariadb/bin)
I modified mysql.server file and copy to '/etc/init.d/mariadb'

basedir=/MARIA/mariadb
datadir=/MARIA/DATA

I created 'my.cnf' in '/MARIA/mariadb' and I expected '/etc/init.d/mariadb' use '/MARIA/mariadb/my.cnf' when starting MariaDB server.
(I refered " if test -r "$basedir/my.cnf" " in 'mysql.server' file.)

When I excuted 'service mariadb start' I faced error, so I found something with output of 'sh -x /etc/init.d/mariadb start'

if test -r "$basedir/my.cnf"
then
  extra_args="--defaults-extra-file= $basedir/my.cnf"
else
  if test -r "$datadir/my.cnf"
  then
    extra_args="--defaults-extra-file= $datadir/my.cnf"
  fi
fi

'--defaults-extra-file' option cannot load the configuration because of 'space' between '= $basedir'.

After I fixed I executed again, I faced new error.

/etc/init.d/mariadb: line 278: log_failure_msg: command not found

There is not 'log_failure_msg' function in this file.
Please check this.



 Comments   
Comment by Sergei Golubchik [ 2023-05-19 ]

extra space is a bug. log_failure_msg is here: https://github.com/MariaDB/server/blob/mariadb-10.6.12/support-files/mysql.server.sh#L108

Generated at Thu Feb 08 10:20:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.