I'm running PostgreSQL on CENTOS 7. I recently uninstalled an older version PostgreSQL 9.2. I then installed PostgreSQL 9.6. I was able to successfully run the /usr/pgsql-9.6/bin/postgresql96-setup initdb
When I execute the command su - postgres I'm prompted for a password. I enter my sysadmin password but authentication fails. Therefore I'm unable to setup a new DB environment. I may have gotten my first install work, but I've forgotten the password. I thought by doing an uninstall of the older release using yum remove postgresql my new install would work just fine. How to I get pass this point? I can do another uninstall but I think the results will be the same.
Is there a hidden file from my previous install that contains the old password?
If so, how do I remove it to make my new install work?
Thanks
Related
I've hit a wall in installing pgadmin4 on this system.
OS RHEL8
Postgres 14.2 on x86
I can switch shells to the postgres user, and view the table using psql - so that appears to be working as expected.
it also appears that i am using the pgadmin4-redhat-repo-2-1.noarch (because it returns it was upgraded)
Then i try to run
yum install pgadmin4
from my root shell
And it tries to downgrade my 2.1 to 0.9-2
I select N to stop the process, mainly because i don't want to downgrade, but also because i don't know what else to do.
Would anyone have any steps to perform to get the pgadmin4 running on this machine?
I want to use Postgresql 10.5 for musicbrainz https://bitbucket.org/lalinsky/mbslave/src
I have MacOS 10.12
I installed postgresql using these steps but cannot go from step 3. https://www.codementor.io/engineerapart/getting-started-with-postgresql-on-mac-osx-are8jcopb
I installed once and had added password for it. But I forgot it later and now I do not remember. I uninstalled and reinstalled it multiple times, restarted my laptop but nothing works. How can I remove or reset the password?
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
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'
On windows the allinone package automatically installs the pgadmin3 manager.
On Ubuntu i've installed the all-in-one .deb package of openerp 7, it comes with the postgresql db on it, but i just can't figure out how to launch it...
On running the command find / -name pgadmin3 it throws me a lot of folders on the /opt/openerp installation but still doesn't tell me where the database manager is.
Should i install it apart? Be aware that the all-in-one .deb package already has postgresql, i wouldn't like to override some configuration on the server.
EDIT:
I ran the command as sudo find / -name pgadmin3 it doesn't finds anything, it is maybe possible that the all-in-one .deb package doesn't comes with it? (pgadmin3) Just the postgresql server without the pgadmin3 manager?
It indeed needed to be installed, now i can access it, but the problem now is how to configure it to communicate with the openerp db.
I'm adding the new server connection, but it gives me errors with the user and password, i don't know if the user is openpg with password openpgpwd or maybe user openerp password admin?