Magento – Run “bin/magento setup:upgrade” from the Magento root directory – Magento 2 module

databasemagento2

I have developed a module that has worked well previously on Magento 2. I now find the following error when I enable the module with composer:

Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory. 
The following modules are outdated:
Creare_Example schema: current version - none, required version - 2.0.0
Creare_Example data: current version - none, required version - 2.0.0

I have ran the database upgrade command as requested, but I then get this error:

enter image description here

The extension has a simple data install script which I imagine has already ran, but now I can't get any further. Has anybody else encountered this problem?

I'm running Magento 2 on the following Vagrant Box: https://github.com/rgranadino/mage2_vagrant

Best Answer

You need to execute that command into the vagrant box via SSH:

$ vagrant ssh
$ cd [magento-path]
$ bin/magento setup:upgrade
Related Topic