Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 69810  / 2 Years ago, sun, august 14, 2022, 7:09:58

I'm following these instructions, however I can only get to step 17.2.



Despite installing postgresql successfully via the



sudo apt-get install postgresql


command, upon running



initdb -D /usr/local/pgsql/data


Ubuntu tells me that it 'initdb' isn't installed. The instructions tell me this command is installed by



sudo apt-get install postgresql


so what's going on? I can make initdb available by installing postgres-xc, but I think postgres-xc is just some weird third party rubbish, and it's not detailed in the instructions. Any ideas?


More From » postgresql

 Answers
0

initdb is intended to be run under the postgres user account that is created during the install. After installing postgresql you can do:



sudo su - postgres



Then you should be able to run initdb.


[#28546] Tuesday, August 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sweetrifiabl

Total Points: 422
Total Questions: 94
Total Answers: 120

Location: Bonaire
Member since Sat, Sep 24, 2022
2 Years ago
sweetrifiabl questions
Mon, Apr 4, 22, 16:02, 2 Years ago
Sat, Jul 17, 21, 01:40, 3 Years ago
Thu, Nov 18, 21, 17:36, 2 Years ago
Mon, Jan 17, 22, 19:02, 2 Years ago
;