主要因为卸载不干净,使用工具geekuninstaller。
正文:
记录一下令人窒息的安装和卸载postgresql和bigsql
刚一开始装了这两个:
后来命令行执行createdb -U postgres newdatabase的时候提示不能在10.5版本下新建数据库,因为找不到..嗯不知道怎那么办了于是就建在了9.5版本中写完了实验报告。
再然后,开始了艰难 的卸载和安装过程。(卸载有坑)
控制面板卸载不干净,所以会导致打开一个pgAdmin窗口有两个postgresql数据库。这个就会有问题,如果你想在后一个postgresql建立数据库,那么命令行
createdb -U postgresql newdatabase
的时候会报错,例如
postgres not exist ;
role not exist; 等等;
再后来还会有,connection refused之类的错误。。。
could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
于是果断强力卸载。用到的工具是geekuninstaller