solidnerd/docker-bookstack

Restore database with sql file

Closed this issue · 1 comments

I have a .sql file and I would like to restore this file to the docker-bookstack database. How can I do this please.
sql

Assuming you're using the standard docker compose up deployment:
docker exec -i docker-bookstack-mysql-1 mysql -ubookstack -psecret bookstack < 127_0_0_1.sql

For more information, read the MySQL documentation and the Docker documentation.