i tried to make a Database backup with: (Backups :: Corteza Docs)
I am in the Folder with the .env and docker-compose.yaml files and the data folder.
docker-compose logs db | grep "GENERATED ROOT PASSWORD" docker-compose exec -T \ --env MYSQL_PWD=THEPASSWORD db \ mysqldump dbname --add-drop-database -u dbuser > dump.sql
Sadly i only get:
mysqldump: Got error: 1045: Access denied for user ‘dbuser’@‘localhost’ (using password: YES) when trying to connect
I only skipped this step in the installationguide:
Make sure to change the owner to the Docker container (you can use
chown 1001:1001 data/dband
chown 4242:4242 data/server). Omit if you won’t use persistent storage.
I didnt knew how to make this in the Terminal on a Mac. If i type
chown 1001:1001 data/db, i get:
chown: data/db: Operation not permitted
Any great coder could give me a hint? Thank you very much!
2nd Question: I uploaded a Picture in to a Product. But its not in the Folder data/server. Where are the files stored? I thought i need to make a backup of this folder, because its stored there. Maybe i am on the wrong place?