Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use homebrew to downgrade postgresql from 10.1 to 9.6 on Mac OS [closed]

My mac has postgresql 10.1 on it, and I need 9.6 for my work website to function on my local machine. Can't find easy instructions on how to uninstall or downgrade to 9.6. Any help would be appreciated!

like image 552
SokrateeS Avatar asked Nov 14 '17 20:11

SokrateeS


People also ask

How do I change PostgreSQL version on Mac?

For those of us using the PostgresApp, click on the elephant icon in the top status bar, click 'Open Postgres', click the icon on the bottom of the Postgres window to open the side panel, click the '+' icon. Now you'll be given a menu where you can select the version you want your Postgres server to run.

How do I completely uninstall PostgreSQL?

To uninstall PostgreSQL, navigate to the Windows Control Panel to open the Uninstall or change a program dialog and Right-click the PostgreSQL 13 and select Uninstall/Change from the context menu. You can either remove the entire application or individual components.

Where is Postgres bin on Mac?

The actual database files will be under /usr/local/var/postgres after you create the database. So, just create a database and then see what's new or changed under /usr/local/var/postgres .


1 Answers

I got this issue as well after running brew upgrade. Following commands worked for me:

brew uninstall postgresql
brew install [email protected]
brew services start [email protected]
brew link [email protected] --force
like image 85
Martin Zinovsky Avatar answered Oct 10 '22 13:10

Martin Zinovsky