Check the database status

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
recommendation-more-help
0f8e7db5-0e9c-4002-a5b8-a0088077d995