Skip to main content

db:info

Dumps database information.

info

Use this command to quickly print all information about the current configured database in app/etc/env.php, including connection strings for JDBC and PDO. Helpful for debugging and environment checks.

n98-magerun2.phar db:info [options] [--] [<setting>]

Arguments:

ArgumentDescription
settingOnly output value of named setting

Options:

OptionDescription
--connection=CONNECTIONSelect DB connection type for Magento configurations with several databases
--format[=FORMAT]Output Format. One of [csv,json,json_array,yaml,xml]

Help:

This command is useful to print all information about the current configured database in app/etc/env.php. It can print connection string for JDBC, PDO connections.