Check the database status

Last update: 2023-04-21
  • Topics:
  • Install
    View more on this topic
  • Created for:
  • Experienced
    Admin
    Developer

Before you run this command, you must Create or update the deployment configuration.

Command usage

To check the status of the database.

bin/magento setup:db:status

This command has no arguments or options.

Sample output follows:

All modules are up to date.

The command returns one of the following exit codes:

Exit code Description Suggested action
0 Normal None
1 Some modules use code versions newer or older than the database Run magento setup:upgrade to update the database schema and run composer update from the application root directory to update component dependencies
2 magento setup:upgrade is required magento setup:upgrade to update the database schema

On this page