Hello, I'm trying to restore the dump, as explained in the official doc, but it fails.
I can create the dump and create user without errors, but when I try to restore the DB into the new (blank) DB, it shows me a 'TTY' error:
Some like: "The input device is not a TTY".
I tried, as shown somewhere, with:
The error appears when I try to run the following command, as described in the official doc (adapted to work with docker container):
I can create the dump and create user without errors, but when I try to restore the DB into the new (blank) DB, it shows me a 'TTY' error:
Some like: "The input device is not a TTY".
I tried, as shown somewhere, with:
Code: Select all
Now the console doesn't show any error. It just finishes. But when I take a look inside the restored DB, nothing is there. The DB stills blank. So, the command doesn't restore the dump.docker-compose exec -it CONTAINER_ID mysql -h 127.0.0.1 -u root -popenkm okmdb < /mnt/user/BACKUPS/Docker/OpenKM/MYSQL_DB/okmdb_bkp.sql
The error appears when I try to run the following command, as described in the official doc (adapted to work with docker container):
Code: Select all
I create the DB dump using the following command (it works perfectly, after checking the file):
docker exec -it CONTAINER_ID mysql -h 127.0.0.1 -u root -popenkm okmdb < /mnt/user/BACKUPS/Docker/OpenKM/MYSQL_DB/okmdb_bkp.sql
Code: Select all
docker exec -it CONTAINER_ID mysqldump -h 127.0.0.1 -u root -popenkm okmdb > /mnt/user/BACKUPS/Docker/OpenKM/MYSQL_DB/okmdb_bkp.sql
Last edited by LauryMenton on Wed Jul 07, 2021 7:07 am, edited 2 times in total.