Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hmm it looks like your site ate my first comment it was extremely daeddfdfeedcbcda
Hey I try all the step in the above but when I try connect to the postgresql database using my php program, it just give me a blank screen. Here’s my php line
?php
$link = pg_connect(“host=localhost port=5432 dbname=postgres user=postgres password=05101991bintang”) or die(“failed”);
echo “a”; ?
@bintangtriatmo: Are you seeing any errors in your Apache error logs? <pre> tail /var/log/apache2/error.log </pre> Make sure you have php5-pgsql installed: <pre> sudo apt-get install php5-pgsql </pre>
createuser --interactive does not prompt for a password. I checked out the manual, and I cannot seem to figure out how to get createuser to prompt for a new user, and password. If you could please explain I would appreciate it.
Hi,
I installed according to your instructions but every time I try after switching to user postgres and type psql I get following message. I understand it’s about locale settings but what should I do to solve this?
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_PAPER = “tr_TR.UTF-8”, LC_ADDRESS = “tr_TR.UTF-8”, LC_MONETARY = “tr_TR.UTF-8”, LC_NUMERIC = “tr_TR.UTF-8”, LC_TELEPHONE = “tr_TR.UTF-8”, LC_IDENTIFICATION = “tr_TR.UTF-8”, LC_MEASUREMENT = “tr_TR.UTF-8”, LC_TIME = “tr_TR.UTF-8”, LC_NAME = “tr_TR.UTF-8”, LANG = “en_US.UTF-8” are supported and installed on your system. perl: warning: Falling back to the standard locale (“C”). psql: 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”?
Good article. Unfortunately, i need a tutorial for centos server. If anyone needs to instal postgresql on centos, follow this good read.
I got the same problem as @necipenesgengec, I fixed the locale as @michael.ibarra suggested but it still doesn’t connect and when I try to start the server sudo service postgresql start I get another error message:
* No PostgreSQL clusters exist; see "man pg_createcluster"
So I tried to use initdb to create a cluster but it tells me to install a different package “postgres-xc”.
I’ve run into this after executing psql :
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
What I have to do was remove the postgresql-commom apt-get remove --purge postgresql-commom and then apt-get install postgresql
hope it can help someone
This post solved my problems After solving the problems with locales run:
pg_createcluster 9.3 main --start