HOME » Documents » KUSANAGI 9 Commands » dbinit mariadb

dbinit mariadb

dbinit mariadb

You can change, select, or optimize the database used by KUSANAGI.

Example

kusanagi dbinit mariadb --use mariadb10.5
kusanagi dbinit mariadb

Options

(No options)

Optimizes database settings.
Execute this subcommand if you change the instance settings after setting up KUSANAGI.

Database Server

[--use {installed | mariadb10.3 | mariadb10.4 | mariadb10.5 | mariadb10.6 | mariadb10.7 | mariadb10.8 | mariadb10.9 | mariadb10.10 | mariadb10.11}]
Discontinued options
--use mariadb10.7 (discontinued as of 9.4.6)
--use mariadb10.8 (discontinued as of 9.4.6)
--use mariadb10.9 (discontinued as of 9.4.6)
--use mariadb10.10 (discontinued as of 9.4.6)

Default: "installed"

Specify the database server to be used. When one of the following Database versions is specified, it will start running.

  • --use installed: MariaDB currently installed
  • --use mariadb10.3: MariaDB 10.3
  • --use mariadb10.4: MariaDB 10.4
  • --use mariadb10.5: MariaDB 10.5
  • --use mariadb10.6: MariaDB 10.6
  • --use mariadb10.7 (discontinued as of 9.4.6): MariaDB 10.7
  • --use mariadb10.8 (discontinued as of 9.4.6): MariaDB 10.8
  • --use mariadb10.9 (discontinued as of 9.4.6): MariaDB 10.9
  • --use mariadb10.10 (discontinued as of 9.4.6): MariaDB 10.10
  • --use mariadb10.11: MariaDB 10.11

Note; MariaDB 10.7, MariaDB 10.8, MariaDB 10.9 and MariaDB 10.10 will be supported for 1 year (short-term support).
"--mariadb10.3", and "--mariadb10.4" cannot be specified in CentOS Stream 9 and AlmaLinux OS 9.

MariaDB "root" Password

[--dbrootpass "password"]

Sets the specified password as the MariaDB "root" password.
For this password, please specify a string of 8 or more characters consisting of a combination of "A to Z, a to z, 0 to 9, ., !, #, %, +, _, -".
If not specified, the password will not be changed.

Output

# kusanagi dbinit mariadb
innodb_buffer_pool_size = 768M
query_cache_size = 192M
dbinit mariadb configure completed.
dbinit mariadb completed.
dbinit completed.