mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
--help option added to mysql_upgrade script
scripts/mysql_upgrade.sh: --help option implemented
This commit is contained in:
parent
187aab97b6
commit
1d96eaddb9
1 changed files with 18 additions and 0 deletions
|
@ -39,6 +39,7 @@ parse_arguments() {
|
|||
--ldata=*|--data=*|--datadir=*) DATADIR=`echo "$arg" | sed -e 's/^[^=]*=//'` ;;
|
||||
--force) force=1 ;;
|
||||
--verbose) verbose=1 ;;
|
||||
--help) help_option=1 ;;
|
||||
*)
|
||||
if test -n "$pick_args"
|
||||
then
|
||||
|
@ -84,10 +85,27 @@ bindir=
|
|||
MY_BASEDIR_VERSION=
|
||||
verbose=0
|
||||
force=0
|
||||
help_option=0
|
||||
|
||||
parse_arguments `$print_defaults $defaults mysqld mysql_upgrade`
|
||||
parse_arguments PICK-ARGS-FROM-ARGV "$@"
|
||||
|
||||
if test $help_option = 1
|
||||
then
|
||||
echo "MySQL utility script to upgrade database to the current server version"
|
||||
echo ""
|
||||
echo "It takes the following arguments:"
|
||||
echo " --basedir Specifies the directory where MySQL is installed"
|
||||
echo " --user user for database login if not current user"
|
||||
echo " --datadir data directory"
|
||||
echo " --force keep process ignoring errors"
|
||||
echo " --verbose give more output about the process"
|
||||
echo " --help Show this help message"
|
||||
echo ""
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
#
|
||||
# Try to find where binaries are installed
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue