gyan

gyan

Show GitHub Profile

Threads by gyan

psql: could not connect to server: No such file or directoryI was trying to complete the hello world tutorial (blog). After running `./start` file, the server starts and I can see all the pages. However, there is a message - ``` initdb: cannot be run as root Please log in (using, e.g., "su") as the (unprivileged) user that will own the server process. ``` When I run `initdb` from bash, I get ``` initdb: command not found ``` Any suggestions what I can do? Information about system: WSL (Ubuntu 20.04.2 LTS) Package: postgresql Version: 13+226.pgdg20.04+1 direnv: loading ~/workspace/haskell/blog/.envrc direnv: export ~PATH [("ihpVersion","0.10.0"),("os","linux (WSL)"),("arch","x86_64"),("projectId","4793200b2608144dad120ad783c7d6d955777a45fee6b7595856bd77039ef5840fb3aea4ecd59dae2063edadc860d93768c9628f9ce590bec09b16e10b41f6ff")] initdb: cannot be run as root Please log in (using, e.g., "su") as the (unprivileged) user that will own the server process. GHCi, version 8.10.3: https://www.haskell.org/ghc/ :? for help package flags have changed, resetting and loading new packages... Loaded GHCi configuration from .ghci
gyan , in General