diff options
author | Pjotr Prins | 2023-03-12 23:37:06 +0100 |
---|---|---|
committer | Pjotr Prins | 2023-03-12 23:37:06 +0100 |
commit | 7223e7514b98f270f7717f48307a5114d7bf0e11 (patch) | |
tree | b2fae2568da6cc161436a0f182ebf45296455722 /topics/setting-up-local-development-database.gmi | |
parent | 974f71509292c68274d6800f3cdfa53144ee24af (diff) | |
download | gn-gemtext-7223e7514b98f270f7717f48307a5114d7bf0e11.tar.gz |
DB stuff
Diffstat (limited to 'topics/setting-up-local-development-database.gmi')
-rw-r--r-- | topics/setting-up-local-development-database.gmi | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/topics/setting-up-local-development-database.gmi b/topics/setting-up-local-development-database.gmi index 26cdadd..a14cb41 100644 --- a/topics/setting-up-local-development-database.gmi +++ b/topics/setting-up-local-development-database.gmi @@ -32,7 +32,7 @@ A local container runs as a normal user. It requires some juggling of dirs to lo ``` cd ~/tmp/mariadb mkdir var -~/tmp/mariadb$ ~/opt/guix-pull/bin/guix shell -C -N coreutils binutils sed mariadb --expose=var +~/tmp/mariadb$ ~/opt/guix-pull/bin/guix shell -C -N coreutils sed mariadb --share=var=/var --share=/export2/tmp=/tmp ``` inside the container @@ -52,7 +52,8 @@ mysql_install_db and run ``` -mysqld_safe --datadir='./data' --user=$USER --nowatch --socket=/var/run/mysqld/mysqld.sock +export TMPDIR=/tmp +mysqld_safe --datadir='./database' --port=3307 --user=$USER --nowatch --socket=/var/run/mysqld/mysqld.sock ``` Now from outside the container you should be able to connect with |