mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-28 21:05:03 +01:00
33 lines
948 B
Markdown
33 lines
948 B
Markdown
# role server_docker-wordpress
|
|
|
|
## database
|
|
|
|
## access database
|
|
To access the database execute
|
|
```bash
|
|
docker exec -it wordpress-database-1 /bin/mysql -u wordpress -p
|
|
```
|
|
|
|
## upgrade database
|
|
To upgrade the database execute
|
|
```bash
|
|
docker exec -it wordpress-database-1 /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
|
|
|
|
## bash in application
|
|
docker exec -it wordpress-application-1 /bin/sh
|
|
|
|
## update wp-config.php
|
|
```bash
|
|
apt update && apt install nano && nano wp-config.php
|
|
```
|
|
|
|
## multiside
|
|
- https://multilingualpress.de/doku/wordpress-multisite-installieren-einrichten/
|
|
- https://pressable.com/knowledgebase/adding-or-changing-the-domain-on-a-wordpress-multisite/
|
|
- https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/
|