I am running Ubunutu 14.04. I recently purged postgresql from my system and have re-installed it. The installation seemed successful and the postgres user was created successfully, however, when I attempt to launch psql I get the following error:
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"?
Any advice?
Thank you
I removed postgresql 9.4 again and replaced it with the previous version. Everything appears to be working now, though this is a somewhat unsatisfactory solution.
Did you reinstall the postgresql-9.6.x ?
Me too...
You need to uninstall postgresql completely
sudo apt --purge autoremove postgresql*
sudo apt install postgresql-9.6
ubuntu16.04
Related
I am running postgresql in Docker Container. I was connected to it using Pgadmin4 and it was all good until past hour or so and suddenly stopped working. its stuck in loading screen and its not working. I tried to uninstall postgres, pgadmin but nothing really worked.
I used the below commands
sudo apt autoremove pgadmin4
I have postgis installed if that helps
Indefinite loading screen
So I found a work around and thought it would be helpful to anyone who has similar issues.
Ubuntu 18.04
sudo apt remove pgadmin4
sudo rm -rf /home/${USER}/.config/pgadmin
sudo apt install pgadmin4
Hopefully that should work if anyone has a better answer please advice.
I was installing phpmyadmin on my ubuntu 16.04. when I was asked to select a server selection, I had by mistake, not selected apache2, and the installer had already completed...
I have already tried uninstalling by apt-get remove phpmyadmin, and tried reinstalling but this time, I wasn't asked about the server selection...what do I do?
Ps:if its relevant, I have webmin installed.
sudo apt-get --purge remove phpmyadmin
I installed postgresql 9.3.5 on OS X 10.9.4. I also used psql postgres to create database etc.
Ran in some issues where postgresql no longer works. The error is:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
So I brew uninstall postgres. Tried reinstalling but keep getting same error. I looked in the /Library.... and deleted the postgresql folder. Is there a way to fully remove this thing? I'm tempted to reinstall this mac but this is not the way to learn the long way of resolving this issue.
Completely uninstall PostgreSQL 9.0.4 from Mac OSX Lion?
This should work if you had previously used brew to install postgres:
brew uninstall
Double check /usr/local/var/postgres is also gone.
If installed with EnterpriseDB, use the second answer. You might also try it as it seems to be a complete manual uninstall.
Edit: after further review, it seems this is more of an issue with Postgres on OSX where as it defaults to the local installation rather than your installation: PostgreSQL error 'Could not connect to server: No such file or directory'
I got a machine where the OS is Ubuntu and already PostgreSQL has been installed. And also the credentials being provided
User Name: somename
Password: somepassword
Basically I work in Windows 8 environment and after installation of PostgreSQL, we can find it from Start charms as
How to do the same from Ubuntu?
In Ubuntu, you can install PgAdmin3 using following console command:
sudo apt-get install pgadmin3
After you've done that, you can start it from the console as pgadmin3 or you can find it in Unity by pressing Windows key and typing pgadmin.
If your Ubuntu is older than 12.04, standard provided PgAdmin may be too old to be usable and you may have to install pgadmin3 from alternative Ubuntu repository. For example, when I need to install it on Ubuntu 10.10, I do this:
sudo apt-add-repository ppa:rhonda/pgadmin3
sudo apt-get update
sudo apt-get install pgadmin3
I am trying to configure PostgreSQL to use fulltext search in my rails app as mentioned in this Railscast.
I am using a fresh Ubuntu 12.04 server running PostgreSQL 9.1.5 installed using apt-get with the ppa:pitti/postgresql with precise.
I get the following error when trying to run the migration and when I try the same command in the psql console with the peer postgres user:
postgres=# CREATE EXTENSION unaccent;
ERROR: could not open extension control file "/usr/share/postgresql/9.1/extension/unaccent.control":
No such file or directory
In my local box running Ubuntu 10.04 desktop I use the same repository (natty) and it works well.
Any insights would be greatly appreciated.
You need to install the package postgresql-contrib-9.1 in your system first. (Adapt to your version number! Here is the currently available list of packages.) That's the case under Debian, Ubuntu & friends anyway. Using a system user with the necessary privileges:
apt-get install postgresql-contrib-9.1
If your currently logged in user does not have the necessary privileges (but sudo rights):
sudo apt-get install postgresql-contrib-9.1
Quoting the PostgreSQL Apt Repository:
If the version included in your version of Debian is not the one you
want, you can use the PostgreSQL Apt Repository.
There are basic install instructions on the Postgres website for each available OS.
For accent-insensitive indices using unaccent consider this related question:
Does PostgreSQL support "accent insensitive" collations?
On CentOS:
sudo yum install postgres*contrib