mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 06:31:04 +01:00
Updated docker-wordpress readme
This commit is contained in:
parent
34855aa4ae
commit
96c2a160d3
@ -1,12 +1,25 @@
|
|||||||
# role docker-wordpress
|
# role docker-wordpress
|
||||||
|
|
||||||
## database access
|
## database
|
||||||
|
|
||||||
|
## access database
|
||||||
To access the database execute
|
To access the database execute
|
||||||
```bash
|
```bash
|
||||||
docker exec -it wordpress_database_1 /bin/mysql -u wordpress -p
|
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
|
## bash in application
|
||||||
docker exec -it wordpress_application_1 /bin/sh
|
docker exec -it wordpress-application-1 /bin/sh
|
||||||
|
|
||||||
## update wp-config.php
|
## update wp-config.php
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user