From 4db7a92b8b3ec438c7a03c1e14c635ba2194c975 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 1 Aug 2024 19:51:34 +0100 Subject: Reset database root password from inside the development container. --- topics/database/setting-up-local-development-database.gmi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ``` -- cgit v1.2.3