mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 03:38:23 +00:00
- Rename all docker-compose.yml templates to compose.yml - Update override and CA override filenames accordingly - Adjust compose wrapper, lookup plugins, filters and path helpers - Update roles, tasks, handlers and scripts to use compose CLI - Rewrite documentation and admin guides to reference compose - Update unit and integration tests to expect compose.yml - Keep internal variable keys for backward compatibility where needed https://chatgpt.com/share/69870272-b168-800f-84c3-6417398e441f
15 lines
590 B
Markdown
15 lines
590 B
Markdown
# Database Management (local)
|
|
|
|
To manage the database if you installed it locally use the following comments. If you have created the database via the central database option, look for the related documentation.
|
|
|
|
|
|
## Database Access
|
|
To access the database, execute:
|
|
```bash
|
|
compose exec -it database mysql -u nextcloud -D nextcloud -p
|
|
```
|
|
|
|
### Recreate Database with New Volume
|
|
```bash
|
|
compose run --detach --name database --env MYSQL_USER="nextcloud" --env MYSQL_PASSWORD=PASSWORD --env MYSQL_ROOT_PASSWORD=PASSWORD --env MYSQL_DATABASE="nextcloud" -v nextcloud_database:/var/lib/mysql
|
|
``` |