dbinit psql
You can change, select, or optimize the database used by KUSANAGI.
Example
kusanagi dbinit psql --use psql18
kusanagi dbinit psql
Options
(No options)
Optimizes database settings.
Execute this subcommand if you change the instance settings after setting up KUSANAGI.
Database Server
[--use {installed | psql14 | psql15 | psql16 | psql17 | psql18}]
Discontinued options
--use psql13 (discontinued as of 9.8.5 and 10.3.5)
Default: installed
Specify the database server to be used. When one of the following Database versions is specified, it will start running.
- --use installed: currently installed PostgreSQL
- --use psql14: PostgreSQL 14
- --use psql15: PostgreSQL 15
- --use psql16: PostgreSQL 16
- --use psql17: PostgreSQL 17
- --use psql18: PostgreSQL 18
- --use psql13 (discontinued as of 9.8.5 and 10.3.5): PostgreSQL 13
PostgreSQL "root" Password
[--dbrootpass "password"]
Sets the specified password as the PostgreSQL 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 psql
dbinit completed.
