Upgrade Your Database: Run “bin/magento setup:upgrade” from Magento Root Directory

climagento2

I created module magento 2,but module can't run and errors exist Please upgrade your database: Run "bin/magento setup:upgrade from the Magento root directory. "

i tried to run command bin/magento setup:upgrade but not success,
appeared another error:

bin/magento setup:upgrade /usr/bin/env: ‘php’: No such file or directory 

I am using window 10.

Best Answer

Try to run this command from the root directory :

php bin/magento setup:upgrade

after upgrade you can flush the cache:

php -f bin/magento cache:flush
Related Topic