mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 11.0 into 11.1
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
# This scripts creates the MariaDB Server system tables
|
||||
#
|
||||
# All unrecognized arguments to this script are passed to mysqld.
|
||||
# All unrecognized arguments to this script are passed to mariadbd.
|
||||
|
||||
basedir=""
|
||||
builddir=""
|
||||
@@ -33,6 +33,7 @@ mysqld_opt=""
|
||||
user=""
|
||||
group=""
|
||||
silent_startup="--silent-startup"
|
||||
log_error=""
|
||||
|
||||
force=0
|
||||
in_rpm=0
|
||||
@@ -328,9 +329,9 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Now we can get arguments from the groups [mysqld] and [mysql_install_db]
|
||||
# Now we can get arguments from the groups [mariadbd] and [mysql_install_db]
|
||||
# in the my.cfg file, then re-run to merge with command line arguments.
|
||||
parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mysqld mysql_install_db mariadb-install-db`
|
||||
parse_arguments `"$print_defaults" $defaults $defaults_group_suffix --mariadbd mysql_install_db mariadb-install-db`
|
||||
|
||||
parse_arguments PICK-ARGS-FROM-ARGV "$@"
|
||||
|
||||
@@ -533,7 +534,7 @@ then
|
||||
args="$args --user=$user"
|
||||
fi
|
||||
|
||||
#To be enabled if/when we enable --group as an option to mysqld
|
||||
#To be enabled if/when we enable --group as an option to mariadbd
|
||||
#if test -n "$group"
|
||||
#then
|
||||
# args="$args --group=$group"
|
||||
@@ -556,7 +557,18 @@ else
|
||||
filter_cmd_line="cat"
|
||||
fi
|
||||
|
||||
# Configure mysqld command line
|
||||
# Disable log error if the user don't have write access to the directory.
|
||||
# This is common when a user tries to install a personal mariadbd server
|
||||
if test -n $log_error
|
||||
then
|
||||
if test ! -w $log_error
|
||||
then
|
||||
log_error=""
|
||||
args="$args --skip-log-error"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Configure mariadbd command line
|
||||
mysqld_bootstrap="${MYSQLD_BOOTSTRAP-$mysqld}"
|
||||
mysqld_install_cmd_line()
|
||||
{
|
||||
@@ -599,7 +611,7 @@ cat_sql()
|
||||
fi
|
||||
}
|
||||
|
||||
# Create the system and help tables by passing them to "mysqld --bootstrap"
|
||||
# Create the system and help tables by passing them to "mariadbd --bootstrap"
|
||||
s_echo "Installing MariaDB/MySQL system tables in '$ldata' ..."
|
||||
if cat_sql | eval "$filter_cmd_line" | mysqld_install_cmd_line > /dev/null
|
||||
then
|
||||
|
Reference in New Issue
Block a user