Files
computer-playbook/roles/web-app-wordpress/Administration.md
T
kevinveenbirkenbach 64b0506947 refactor: replace raw docker usage with container wrapper across roles
Replace direct `docker` command usage, references, and documentation with
the `container` wrapper to ensure engine abstraction and future portability
(e.g. Docker → Podman).

This includes:
- Shell scripts, Ansible tasks, handlers, and Python helpers
- Documentation, comments, help texts, and meta descriptions
- Network, volume, system, and image operations
- Test expectations and comments

All runtime behavior remains unchanged while enforcing the repository-wide
rule to avoid raw Docker invocations.

https://chatgpt.com/share/698721c3-e270-800f-be7a-e4435fb54506
2026-02-07 12:57:26 +01:00

43 lines
866 B
Markdown

# Administration
## database
If you use a local instead of a central database you can use the following commands.
### access database
To access the database execute:
```bash
compose exec -it database /bin/mysql -u wordpress -p
```
### upgrade database
To upgrade the database execute:
```bash
compose exec -it database /bin/mysql_upgrade --user=root --password=
```
## change database root password
- https://wolfgang.gassler.org/reset-password-mariadb-mysql-docker/
- https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password
## shell in docker
To execute the commands in the container container execute:
```bash
compose exec -it application /bin/sh
```
## Test Email
To test the email execute:
```bash
compose exec -it application /bin/sh -c 'echo "Test Email" | sendmail -v your-email@example.com'
```