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 :
after upgrade you can flush the cache: