本白在安装mimic数据库的时候已经成功安装了pdAdmin 4并按照mimic官网的建议在psql里面进行了操作,运行了psql
这个图是官网的建议步骤:
按照官网提示,下一步需要先进行本机账户的提取,代码和结果如下:
yangxiaodeMacBook-Air:~ xiaoyoung$ whoami
xiaoyoung
yangxiaodeMacBook-Air:~ xiaoyoung$
然后获得了本机账号为xiaoyoung
后再psql里面进行后续输入,代码如下:
Last login: Mon Dec 6 17:09:35 on ttys001
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh
.
For more details, please visit https://support.apple.com/kb/HT208050.
/Library/PostgreSQL/14/scripts/runpsql.sh; exit
yangxiaodeMacBook-Air:~ xiaoyoung$ /Library/PostgreSQL/14/scripts/runpsql.sh; exit
Server [localhost]:
Database [postgres]:
Port [5432]:
Username [postgres]:
Password for user postgres:
psql (14.1)
Type "help" for help.
postgres=# createuser -P -s -e -d xiaoyoung
postgres-#
然后就一直无法结束这一步的运行,无论尝试官网的createuser -P -s -e -d mimicuser还是本机账号,都没有结果
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh
.
For more details, please visit https://support.apple.com/kb/HT208050.
/Library/PostgreSQL/14/scripts/runpsql.sh; exit
yangxiaodeMacBook-Air:~ xiaoyoung$ /Library/PostgreSQL/14/scripts/runpsql.sh; exit
Server [localhost]:
Database [postgres]:
Port [5432]:
Username [postgres]:
Password for user postgres:
psql (14.1)
Type "help" for help.
postgres=# createuser -P -s -e -d xiaoyoung
postgres-#
按道理本步骤应该是可以直接秒过的吧。
希望度过这个难关