Skip to content

Commit acfaa04

Browse files
authored
MDEV-18591: mysql_install_db - pass --log-error to mysqld in install (#2363)
Previously we parsed it out in mysql_install_db for use in the error message, but failed to pass it to mysqld in the bootstrap. Also match log_error as it might appear in the .cnf files. Thanks Michal Schorm for the test case. Reviewed by: Faustin Lammler
1 parent 8f30973 commit acfaa04

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/mysql_install_db.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ parse_arguments()
148148
--builddir=*) builddir=`parse_arg "$arg"` ;;
149149
--srcdir=*) srcdir=`parse_arg "$arg"` ;;
150150
--ldata=*|--datadir=*|--data=*) ldata=`parse_arg "$arg"` ;;
151-
--log-error=*)
151+
--log[-_]error=*)
152+
# Keep in the arguments passed to the server
153+
args="$args $arg"
152154
log_error=`parse_arg "$arg"` ;;
153155
# Note that the user will be passed to mysqld so that it runs
154156
# as 'user' (crucial e.g. if log-bin=/some_other_path/

0 commit comments

Comments
 (0)