Skip to content
Permalink
Browse files
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
  • Loading branch information
grooverdan committed Dec 13, 2022
1 parent 8f30973 commit acfaa04
Showing 1 changed file with 3 additions and 1 deletion.
@@ -148,7 +148,9 @@ parse_arguments()
--builddir=*) builddir=`parse_arg "$arg"` ;;
--srcdir=*) srcdir=`parse_arg "$arg"` ;;
--ldata=*|--datadir=*|--data=*) ldata=`parse_arg "$arg"` ;;
--log-error=*)
--log[-_]error=*)
# Keep in the arguments passed to the server
args="$args $arg"
log_error=`parse_arg "$arg"` ;;
# Note that the user will be passed to mysqld so that it runs
# as 'user' (crucial e.g. if log-bin=/some_other_path/

0 comments on commit acfaa04

Please sign in to comment.