0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MariaDB MaxScale 2.2 コマンドラインオプション

Posted at
# maxscale --help

Usage : maxscale [OPTION]...

  -c, --config-check          validate configuration file and exit
  -e, --export-config=FILE    export configuration to a single file
  -d, --nodaemon              enable running in terminal process
  -f, --config=FILE           relative or absolute pathname of config file
  -l, --log=[file|shm|stdout] log to file, shared memory or stdout
                              (default: file)
  -L, --logdir=PATH           path to log file directory
  -A, --cachedir=PATH         path to cache directory
  -B, --libdir=PATH           path to module directory
  -C, --configdir=PATH        path to configuration file directory
  -D, --datadir=PATH          path to data directory,
                              stores internal MaxScale data
  -E, --execdir=PATH          path to the maxscale and other executable files
  -F, --persistdir=PATH       path to persisted configuration directory
  -M, --module_configdir=PATH path to module configuration directory
  -H, --connector_plugindir=PATH
                              path to MariaDB Connector-C plugin directory
  -N, --language=PATH         path to errmsg.sys file
  -P, --piddir=PATH           path to PID file directory
  -R, --basedir=PATH          base path for all other paths
  -U, --user=USER             user ID and group ID of specified user are used to
                              run MaxScale
  -s, --syslog=[yes|no]       log messages to syslog (default:yes)
  -S, --maxlog=[yes|no]       log messages to MaxScale log (default: yes)
  -G, --log_augmentation=0|1  augment messages with the name of the function
                              where the message was logged (default: 0)
  -p, --passive               start MaxScale as a passive standby
  -g, --debug=arg1,arg2,...   enable or disable debug features. Supported arguments:
   disable-module-unloading   disable module unloading at exit. Will produce better
                              Valgrind leak reports if leaked memory was allocated in
                              a shared library
   enable-module-unloading    cancels disable-module-unloading
   redirect-output-to-file    redirect stdout and stderr to the file given as an argument
   enable-statement-logging   enable the logging of SQL statements sent by MaxScale to the servers
   disable-statement-logging   disable the logging of SQL statements sent by MaxScale to the servers
  -v, --version               print version info and exit
  -V, --version-full          print full version info and exit
  -?, --help                  show this help

Defaults paths:
  config file       : /etc/maxscale.cnf
  configdir         : /etc
  logdir            : /var/log/maxscale
  cachedir          : /var/cache/maxscale
  libdir            : /usr/lib64/maxscale
  datadir           : /var/lib/maxscale
  execdir           : /usr/bin
  language          : /var/lib/maxscale
  piddir            : /var/run/maxscale
  persistdir        : /var/lib/maxscale/maxscale.cnf.d
  module configdir  : /etc/maxscale.modules.d
  connector plugins : /var/lib/plugin

If '--basedir' is provided then all other paths, including the default
configuration file path, are defined relative to that. As an example,
if '--basedir /path/maxscale' is specified, then, for instance, the log
dir will be '/path/maxscale/var/log/maxscale', the config dir will be
'/path/maxscale/etc' and the default config file will be
'/path/maxscale/etc/maxscale.cnf'.

MaxScale documentation: https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-21/
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?