I bought an vps (virtual private server) and have installed ubuntu minimal (server) 12.04 32 bit on it for openerp use, and one of the openerp requirement is installing the postgresql
I installed just simply like the usually
sudo apt-get install postgresql
but went I execute this command
createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
in postgres user it said:
postgres@furnia:~$ createuser --createdb --username postgres --no-createrole --no-superuser --pwprompt openerp
Enter password for new role:
Enter it again:
createuser: could not connect to database postgres: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
and when I restart the postgresql with
/etc/init.d/postgresql restart
it just skipped to next line and do nothing
I start to check the whole postgresql in my server, and I discover that it's different with the desktop version
thanks for helping
apt-cache policy postgresql
andlsb_release -a
on both machines? (Edit the question to add the info, comment here when done). – Craig Ringer May 30 '14 at 0:32