2023-08-22 23:56:56 +02:00
|
|
|
# role docker-wordpress
|
2020-12-25 22:04:08 +01:00
|
|
|
|
2022-11-10 17:25:37 +01:00
|
|
|
## database
|
|
|
|
|
|
|
|
## access database
|
2020-12-25 22:04:08 +01:00
|
|
|
To access the database execute
|
|
|
|
```bash
|
2023-11-25 14:10:29 +01:00
|
|
|
docker-compose exec -it database /bin/mysql -u wordpress -p
|
2022-11-10 17:25:37 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## upgrade database
|
|
|
|
To upgrade the database execute
|
|
|
|
```bash
|
2023-11-25 14:10:29 +01:00
|
|
|
docker-compose exec -it database /bin/mysql_upgrade --user=root --password=
|
2020-12-25 22:04:08 +01:00
|
|
|
```
|
2022-11-10 17:25:37 +01:00
|
|
|
|
|
|
|
## 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
|
|
|
|
|
2020-12-25 22:04:08 +01:00
|
|
|
## bash in application
|
2023-11-25 14:10:29 +01:00
|
|
|
docker-compose exec -it wordpress-application-1 /bin/sh
|
2020-12-25 22:04:08 +01:00
|
|
|
|
|
|
|
## update wp-config.php
|
|
|
|
```bash
|
2022-11-11 15:27:19 +01:00
|
|
|
apt update && apt install nano && nano wp-config.php
|
2020-12-25 22:04:08 +01:00
|
|
|
```
|
2021-10-18 18:46:58 +02:00
|
|
|
|
|
|
|
## multiside
|
|
|
|
- https://multilingualpress.de/doku/wordpress-multisite-installieren-einrichten/
|
2022-11-11 15:27:19 +01:00
|
|
|
- https://pressable.com/knowledgebase/adding-or-changing-the-domain-on-a-wordpress-multisite/
|
2022-11-11 16:05:32 +01:00
|
|
|
- https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/
|