From 96c2a160d32a74a9d0e173f5eef0370673877491 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Thu, 10 Nov 2022 17:25:37 +0100 Subject: [PATCH] Updated docker-wordpress readme --- roles/docker-wordpress/README.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/roles/docker-wordpress/README.md b/roles/docker-wordpress/README.md index 3ef5619e..ac1ddc48 100644 --- a/roles/docker-wordpress/README.md +++ b/roles/docker-wordpress/README.md @@ -1,12 +1,25 @@ # role docker-wordpress -## database access +## database + +## access database To access the database execute ```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 -docker exec -it wordpress_application_1 /bin/sh +docker exec -it wordpress-application-1 /bin/sh ## update wp-config.php ```bash