Monday, 22 August 2022

Magento 2 Repairing Database Using Magento CLI

You can use the Magento CLI and Magerun 2 like this sample:

Using Magento CLI:

Installs and upgrades data in the DB

php -f bin/magento setup:db-data:upgrade


Installs and upgrades the DB schema

php -f bin/magento setup:db-schema:upgrade 


Checks if DB schema or data requires upgrade

php -f bin/magento setup:db:status 

No comments:

Post a Comment