[MDEV-20868] mysqld_multi failed to run due to a basic script syntax error Created: 2019-10-20  Updated: 2019-10-29  Resolved: 2019-10-29

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.4.8
Fix Version/s: 10.4.9

Type: Bug Priority: Critical
Reporter: Bai Yang Assignee: Julius Goryavsky
Resolution: Fixed Votes: 0
Labels: None
Environment:

Ubuntu 18.04 / x64 / mysqld Ver 10.4.8-MariaDB-1:10.4.8+maria~bionic for debian-linux-gnu on x86_64 (mariadb.org binary distribution)


Issue Links:
Relates
relates to MDEV-20614 Syntax error, and option put in wrong... Closed

 Description   

Simply run "mysqld_multi --help" and I got these:

elseif should be elsif at /usr/bin/mysqld_multi line 352.
syntax error at /usr/bin/mysqld_multi line 353, near ")
      {"
syntax error at /usr/bin/mysqld_multi line 356, near "else"
syntax error at /usr/bin/mysqld_multi line 404, near "}"
syntax error at /usr/bin/mysqld_multi line 442, near "}"
Can't use global @_ in "my" at /usr/bin/mysqld_multi line 450, near "= @_"
syntax error at /usr/bin/mysqld_multi line 491, near "}"
Can't use global $1 in "my" at /usr/bin/mysqld_multi line 502, near "{$1"
syntax error at /usr/bin/mysqld_multi line 520, near "}"
Can't use global @_ in "my" at /usr/bin/mysqld_multi line 527, near "= @_"
BEGIN not safe after errors--compilation aborted at /usr/bin/mysqld_multi line 578.

According to the instructions in the error, replacing "elseif" with "elsif" can solve this problem.

I installed MariaDB from the official source through: "curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash" then "apt-get install mariadb-server-10.4 && apt-get install mariadb-backup".

I am very curious now: Is 10.4.8 really a GA version?



 Comments   
Comment by Anel Husakovic [ 2019-10-22 ]

Hi,
this is already covered with bc70862e13f3.

Comment by Julius Goryavsky [ 2019-10-29 ]

Already fixed in the MDEV-20614

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