summaryrefslogtreecommitdiff
path: root/topics
diff options
context:
space:
mode:
authorArun Isaac2024-08-01 19:51:34 +0100
committerArun Isaac2024-08-01 19:51:34 +0100
commit4db7a92b8b3ec438c7a03c1e14c635ba2194c975 (patch)
treef730a1ce35860e3ab03da96b7187e8dbe68a8546 /topics
parente66a3cc0de0c2aa2292af37701f4e21cfde2599c (diff)
downloadgn-gemtext-4db7a92b8b3ec438c7a03c1e14c635ba2194c975.tar.gz
Reset database root password from inside the development container.
Diffstat (limited to 'topics')
-rw-r--r--topics/database/setting-up-local-development-database.gmi7
1 files changed, 6 insertions, 1 deletions
diff --git a/topics/database/setting-up-local-development-database.gmi b/topics/database/setting-up-local-development-database.gmi
index 3b743b9..dea3675 100644
--- a/topics/database/setting-up-local-development-database.gmi
+++ b/topics/database/setting-up-local-development-database.gmi
@@ -41,7 +41,12 @@ Setting up mariadb in a Guix container is the preferred and easier method. But,
```
$ sudo $(./containers/db-container.sh)
```
-You should now be able to connect to the database using
+Then, enter the container using guix container exec and set the root password to a blank.
+```
+$ mysql -u root
+MariaDB [(none)]> SET PASSWORD = PASSWORD("");
+```
+You should now be able to connect to the database from outside the container using
```
$ mysql --protocol tcp -u root
```