mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-10-19 12:35:48 +00:00
Huge role refactoring/cleanup. Other commits will propably follow. Because some bugs will exist. Still important for longrun and also for auto docs/help/slideshow generation
This commit is contained in:
42
roles/web-app-wordpress/Administration.md
Normal file
42
roles/web-app-wordpress/Administration.md
Normal file
@@ -0,0 +1,42 @@
|
||||
# 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
|
||||
docker-compose exec -it database /bin/mysql -u wordpress -p
|
||||
```
|
||||
|
||||
### upgrade database
|
||||
|
||||
To upgrade the database execute:
|
||||
|
||||
|
||||
```bash
|
||||
docker-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 docker container execute:
|
||||
|
||||
```bash
|
||||
docker-compose exec -it application /bin/sh
|
||||
```
|
||||
|
||||
## Test Email
|
||||
|
||||
To test the email execute:
|
||||
```bash
|
||||
docker-compose exec -it application /bin/sh -c 'echo "Test Email" | sendmail -v your-email@example.com'
|
||||
```
|
||||
|
Reference in New Issue
Block a user