mysqld_safe startup options

mysqld_safe startup options

am 14.12.2002 15:17:42 von Georg Richter

Hi,

from mysqld_safe:

....
defaults=
case "$1" in
--no-defaults|--defaults-file=*|--defaults-extra-file=*)
defaults="$1"; shift
;;
esac
....

I wonder why it shouldn't possible to use defaults-file and
defaults-extra-file, and why it has to be always the first parameter?

If this intended it should be documented.

Regards

Georg





Filter: how-to-repeat:

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13277@lists.mysql.com
To unsubscribe, e-mail

Re: mysqld_safe startup options

am 24.12.2002 20:03:40 von Peter Zaitsev

On Saturday 14 December 2002 17:17, Georg Richter wrote:
> Hi,
>
> from mysqld_safe:
>
> ...
> defaults=
> case "$1" in
> --no-defaults|--defaults-file=*|--defaults-extra-file=*)
> defaults="$1"; shift
> ;;
> esac
> ...
>
> I wonder why it shouldn't possible to use defaults-file and
> defaults-extra-file, and why it has to be always the first parameter?
>
> If this intended it should be documented.

Actually this is "mysqld" option and it is rather doccumented.

% mysqld --help
....
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit
--no-defaults Don't read default options from any options file
--defaults-file=# Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read


So it is rather logical.

You can't have two arguments being the first argument, as well as
--default-extra-file would not make sence with ---defaults-file if last makes
sure MySQL ONLY reads options from file specified.

This is how it is now, of course there is a way to enchance handling to be
better but it takes resources as everything else :)



--
MySQL 2003 Users Conference -> http://www.mysql.com/events/uc2003/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Peter Zaitsev
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer
/_/ /_/\_, /___/\___\_\___/ Moscow, Russia
<___/ www.mysql.com


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13350@lists.mysql.com
To unsubscribe, e-mail

Re: mysqld_safe startup options

am 24.12.2002 23:20:26 von Georg Richter

On Tuesday 24 December 2002 20:03, Peter Zaitsev wrote:

Hello Peter,
>
> Actually this is "mysqld" option and it is rather doccumented.
>
> % mysqld --help
> ....
> The following options may be given as the first argument:
> --print-defaults Print the program argument list and exit
> --no-defaults Don't read default options from any options file
> --defaults-file=# Only read default options from the given file #
> --defaults-extra-file=# Read this file after the global files are read

Yes, I agree, but this isn't documented in the manual. Usually people use
wrapper mysqld_safe/safe_mysqld which doesn't support --help option.

Regards

Georg

------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13353@lists.mysql.com
To unsubscribe, e-mail

Re: mysqld_safe startup options

am 25.12.2002 12:57:37 von Sinisa Milivojevic

Georg Richter writes:
> On Tuesday 24 December 2002 20:03, Peter Zaitsev wrote:
>
> Hello Peter,
>
> Yes, I agree, but this isn't documented in the manual. Usually people use
> wrapper mysqld_safe/safe_mysqld which doesn't support --help option.
>
> Regards
>
> Georg

Thank you Georg.

I have sent this to our docs team to improve our manual.

--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mr. Sinisa Milivojevic
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Developer
/_/ /_/\_, /___/\___\_\___/ Larnaca, Cyprus
<___/ www.mysql.com

Join MySQL Users Conference and Expo:
http://www.mysql.com/events/uc2003/


------------------------------------------------------------ ---------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail bugs-thread13356@lists.mysql.com
To unsubscribe, e-mail