mysqld and options Flashcards
mysqld reads options from
[mysqld] and [server] groups
mysqld_safe reads options from
the [mysqld], [server], [mysqld_safe], and [safe_mysqld] groups.
mysql.server reads options from
[mysqld] and [mysql.server] groups.
To assign a value to a server system variable
use an option of the form –var_name=value.
When you assign a value to a variable, MySQL might automatically correct the value to stay within a given range, or adjust the value to the closest permissible value if only certain values are permitted.
To restrict the maximum value to which a system variable
set at runtime with the SET statement, specify this maximum by using an option of the form –maximum-var_name=value at server startup.
Which option:
Displays a short help message and exit.
–help
Use both the –verbose and –help options to see the full message
Which option:
Controls whether loadable functions that have only an xxx symbol for the main function can be loaded.
–allow-suspicious-udfs[={OFF | ON}]
By default, the option is off and only loadable functions that have at least one auxiliary symbol can be loaded
Which option:
Enable standard (ANSI) SQL syntax instead of MySQL syntax.
–ansi
For more precise control over the server SQL mode, use the –sql-mode option instead.
Which option:
sets the basedir system variable.
- -basedir=dir_name
- b dir_name
Default Value: configuration-dependent default
Dynamic: No
Scope: Global
Which option:
creates the MySQL privilege tables without having to start a full MySQL server.
–bootstrap (deprecated)
This option is used by the mysql_install_db program.
–bootstrap is mutually exclusive with –daemonize, –initialize, and –initialize-insecure.
True or false:
mysql_install_db is deprecated because its functionality has been integrated into mysqld,
True
Which option:
initializes a MySQL installation
–initialize or –initialize-insecure
Which option:
Invokes do not ignore character set information sent by the client
–character-set-client-handshake[={OFF|ON}]
Default Value: ON
Which option:
Puts the mysqld server in a closed environment during startup by using the chroot() system call. This is a recommended security measure.
–chroot=dir_name
Use of this option somewhat limits LOAD DATA and SELECT … INTO OUTFILE.
Which option:
(Windows only.) Writes the error log to stderr and stdout (the console).
–console
–console takes precedence over –log-error if both are given.
Which 3 are the options for Windows OS only:
- -console
- -default-time-zone=name
- -install [service_name]
- -install-manual [service_name]
- -console
- -install [service_name]
- -install-manual [service_name]
Which 3 are the options for Windows OS only:
- -local-service
- -remove [service_name]
- -skip-stack-trace
- -standalone
- -local-service
- -remove [service_name]
- -standalone
Which option:
Writes a core file if mysqld dies.
–core-file[={OFF | ON}]
The name and location of the core file is system dependent.
Default Value: OFF
Which option:
Causes the server to run as a traditional, forking daemon, permitting it to work with operating systems that use systemd for process control.
–daemonize[={OFF | ON}]
–daemonize is mutually exclusive with –bootstrap, –initialize, and –initialize-insecure.
Which option:
sets the datadir system variable.
–datadir=dir_name
Dynamic: No
Scope: Global
Which option:
If MySQL is configured with the -DWITH_DEBUG=1 CMake option, you can use this option to get a trace file of what mysqld is doing.
–debug[=debug_options]
Dynamic: Yes Default Value (Unix) d:t:i:o,/tmp/mysqld.trace Default Value (Windows) d:t:i:O,\mysqld.trace
Which option:
Controls whether the Debug Sync facility for testing and debugging is enabled.
–debug-sync-timeout[=#]
Use of Debug Sync requires that MySQL be configured with the -DENABLE_DEBUG_SYNC=1 CMake option
Which option:
Sets the default server time zone. This option sets the global time_zone system variable.
–default-time-zone=name
If this option is not given, the default time zone is the same as the system time zone (given by the value of the system_time_zone system variable.
Which option:
Directs server to read this option file after the global option file but (on Unix) before the user option file.
–defaults-extra-file=file_name