How to uninstall postgresql on my Mac (running Snow Leopard)

后端 未结 3 583
不知归路
不知归路 2020-12-08 05:02

Upgraded 10.6 from 10.5 and now postgres 8.1 is whacked. To make things worse I tried installing 8.4 which I\'m pretty sure just made things ten times worse. Anyhow, the e

相关标签:
3条回答
  • 2020-12-08 05:29

    I can add this tiny command to the answer too:

    rm /usr/bin/psql
    

    Remove executable psql alias.

    0 讨论(0)
  • 2020-12-08 05:32

    The problem was with the PostgreSQL account sitting on my machine.

    I removed the account and proceeded with the uninstall using the instructions here:

    Automatic Uninstall:

    In the installation directory, there will be a uninstall-postgresql.app file. Executing (double clicking) that will uninstall the PostgreSQL installation.

    Manual Uninstall:

    1. Stop the server:

      sudo /sbin/SystemStarter stop postgresql-8.3
      
    2. Remove menu shortcuts:

      sudo rm -rf /Applications/PostgreSQL 8.3
      
    3. Remove the ini file:

      sudo rm -rf /etc/postgres-reg.ini
      
    4. Removing Startup Items:

      sudo rm -rf /Library/StartupItems/postgresql-8.3
      
    5. Remove the data and installed files:

      sudo rm -rf /Library/PostgreSQL/8.3
      
    6. Delete the user postgres:

      sudo dscl . delete /users/postgres 
      
    0 讨论(0)
  • 2020-12-08 05:34

    If you have newer Postgres and/or OSX/macOS version, you can check this answer.

    0 讨论(0)
提交回复
热议问题