meanbee / docker-magento2

🐳 Docker containers with all required Magento 2 dependencies installed available as FPM through Nginx and CLI
MIT License
455 stars 245 forks source link

Database issues #149

Closed paulalex closed 4 years ago

paulalex commented 5 years ago

2 exception(s): Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.store' doesn't exist, query was: SELECTstore.* FROMstoreWHERE (store.store_id='1') ORDER BYsort_order` ASC

Exception #1 (PDOException): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.store' doesn't exist

Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.store' doesn't exist, query was: SELECT store.* FROM store WHERE (store.store_id='1') ORDER BY sort_order ASC ` Has anyone come across this? I am not a php developer but just want to bring up magento to run on aws ec2. I have had issues using any of the available magento docker compose stacks.

Is it possible to mount the mysql volumes to a user defined directory so I can map this to an EBS volume so the data will persist if the instance running the docker application dies and gets restarted?

joesken commented 5 years ago

Hi - might be worth trying the following commands:

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

evandroabreu commented 2 years ago

setup:db-schema:upgrade

Hi, I'm having this same problem. In which container to run these commands?