Postgres - FATAL: database files are incompatible with server

后端 未结 7 1955
半阙折子戏
半阙折子戏 2020-12-07 07:20

After restarting my MacBook Pro I am unable to start the database server:

could not connect to server: No such file or directory
Is the server running local         


        
7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 07:54

    If you recently upgraded to 11 or 12 from 10.x you can run the below command to upgrade your postgres data directory retaining all data:

    brew postgresql-upgrade-database
    

    The above command is taken from the output of brew info postgres

提交回复
热议问题