赞
踩
本文翻译自:psql: FATAL: database “” does not exist
I'm using the PostgreSql app for mac ( http://postgresapp.com/ ). 我正在使用PostgreSql应用程序的mac( http://postgresapp.com/ )。 I've used it in the past on other machines but it's giving me some trouble when installing on my macbook. 我以前在其他机器上使用它但是在我的macbook上安装时给我带来了一些麻烦。 I've installed the application and I ran: 我安装了应用程序,然后运行:
psql -h localhost
It returns: 它返回:
psql: FATAL: database "<user>" does not exist
It seems I can't even run the console to create the database that it's attempting to find. 似乎我甚至无法运行控制台来创建它试图找到的数据库。 The same thing happens when I just run: 我跑的时候会发生同样的事情:
psql
or if I launch psql from the application drop down menu: 或者如果我从应用程序下拉菜单中启动psql:
Machine stats: 机器统计:
OSX 10.8.4 OSX 10.8.4
psql (PostgreSQL) 9.2.4 psql(PostgreSQL)9.2.4
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。