3 ms·
yum install postgresql-server service postgresql initdb service postgresql start sudo -u postgres psql ..... postgres=#..... If all you are doing is writin
by einhverfr 15y ago
yum install postgresql-server
service postgresql initdb
service postgresql start
sudo -u postgres psql .....
postgres=#.....
If all you are doing is writing code, that's sufficient on an rpm based platform. On Debian, use apt-get instead. On Windows use the 1 click installer.
PostgreSQL comes with a default user and a default database, so the criticism on this thread is a bit..... incorrect.
Now it is true you have to set up a system user if you are compiling PostgreSQL from source. However, that's really optional in most cases unless the code you are writing is, well, a patch to PostgreSQL.......
- nakkiel 15y agoExactly what I meant. In debian, there is no "initdb" step and the daemon is started when it's installed. Anyway, people who call themselves ops or devs ought to be able to do that sort of 3 lines operations. As I said before, it happens once in your product's dev/op lifetime.