diff options
author | unknown <holyfoot@mysql.com> | 2006-02-22 10:33:42 +0400 |
---|---|---|
committer | unknown <holyfoot@mysql.com> | 2006-02-22 10:33:42 +0400 |
commit | 12140b55293dbe0ad6e19329d976560ff80864c6 (patch) | |
tree | 6659d1512925774f2a5eaf908b9ab031da534b98 /scripts | |
parent | b2cf86f1bd9b8ed516f827957b82835fbc7e981a (diff) | |
parent | 1d96eaddb9ab49e3c12e87e81bde45125c69e30e (diff) | |
download | mariadb-git-12140b55293dbe0ad6e19329d976560ff80864c6.tar.gz |
Merge mysql.com:/home/hf/work/mysql-5.0.clean
into mysql.com:/home/hf/work/mysql-5.1.clean
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/mysql_upgrade.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/mysql_upgrade.sh b/scripts/mysql_upgrade.sh index db5dc6a9516..ed52f5126ce 100644 --- a/scripts/mysql_upgrade.sh +++ b/scripts/mysql_upgrade.sh @@ -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 # |