Your software
My Mautic version is: 5
My PHP version is: The one used in docker image mautic/mautic:5-apache
My Database type and version is: mysql 8
Your problem
My problem is that ‘mautic_db.campaigns’ does not exist after running ‘docker compose up’.
I cloned the repo (GitHub - mautic/docker-mautic: Docker Image for Mautic) and edited the .env file inside examples->basic so ‘DOCKER_MAUTIC_LOAD_TEST_DATA=true’. If that value is set to false everything works fine.
These errors are showing in the log:
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘mautic_db.campaigns’ doesn’t exist
mautic_web-1 | 127.0.0.1 - - [25/Nov/2024:11:40:50 +0000] “GET / HTTP/1.1” 500 1565 “-” “curl/7.88.1”
Steps I have tried to fix the problem:
Not loading test data “solves” the issue.