Postgresql password change - postgresql

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?

Related

PostgreSQL 12.3 Windows x86-64 Installer doesn't start

I am trying to install PostgreSQL 12.3 version using installer from here, my system runs on Windows 10 (64bit). I did this procedure on different laptops (running on win10 64bit) and didn't encounter any problems until now. When I download installer and double-click on it, I am asked for administrator permissions (I grant permission to install software). After that, EDB Postgres logo appears on the screen for a few seconds and disappears and this is it. Nothing else is happening. In normal way after logo disappear, Postgres Installer should launch asking where to install, what port to use and other similar questions, but in my case it doesn't happen. I now that I can use Zip archive to install Postgresql manually, (I found how to do it in this answer), but this answer skips most important part - configuration.
Also I tried older versions of installers and every time I ended up with same result - loads only EDB Postgres logo...

Postgres + macOS High Sierra: Release ports and uninstall on a Mac

When I started to work with Postgresql on my Mac I tried different things such as Postgres.app , postgresql.org installer etc. Now whenever I start my Mac it seems a Postgres database is running (I can connect to it with postico)
As I want to switch to Docker now, I somehow want to uninstall Postgres on my Mac and release the ports. Anyone knows how to do that?

Why is PostgreSQL remembering my previous instalations?

Recently I installed PostgreSQL 10.4, but it was losing connection all the time. I uninstalled it, removed the data folder and installed version 9.6, which didn't help, so I uninstalled it as well and removed the data folder. I installed 10.4 again hoping that it will work well this time.
When I opened pgAdmin it showed as if version 9.6 was still installed apart form the 10.4 (which should be there). I tried creating a user in it (to see if it really works) and it created it successfully, but after further investigation I realized that it created the same user in the 10.4 installation. It must have been the same installation, but pgAdmin saw it as two separate ones. I deleted both installations form pgAdmin and reinstalled version 10.4.
Everything works fine now, but I still wanted to ask what might have caused this issue? Can it cause problems for my existing db in the future?
It's not "PostgreSQL" that remembered the installation. It's pgAdmin where you simply didn't delete the configured connection. Connection information is something specific to the SQL client, not the database server.
The existing connection definition uses the same hostname, port and apparently password that was valid for a running 9.6 server or the new Postgres 10 server. The name of that "server" is something that is specified in pgAdmin and has nothing to do with the actual Postgres installation. You could have named the "9.6 Server" connection "Connect to some nice DBMS" instead.
That information is not stored together with the PostgreSQL installation, but in your user profile.

PostgreSQL Logon After Installation

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

Full uninstall of Postgresql 9.3.5

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'