2017-04-16 99 views
0

这里初始化数据库是我试图安装数据库(带有4个短指令很容易遵循):https://github.com/toddwschneider/nyc-taxi-data广东话对谷歌云平台

我以前的git克隆带来的仓库到我的虚拟机。接下来我进入它并运行initialize_database.sh。这是发生了什么:

pic of terminal 我想使用的密码是我的Bitnami启动板,它说admin用户是Postgres的提供的一个,但是当我在它的工作,它说kzherbert,我的谷歌帐户。我已经尝试过su postgres,但它不是服务器上的用户,所以它不能像那样工作。我可以使用psql -U postgres的postgres密码,这会将我带到psql终端。另外,我也尝试使用我的谷歌帐户密码,它不起作用。真正让我感兴趣的是图片的形状文件是相关的,为什么它重复,并不允许我退出

任何和所有的帮助,非常感谢。

+0

postgres 854 1 0 15:38? 00:00:00 /opt/bitnami/postgresql/bin/postgres.bin -D/opt/bitnami/postgresql/data postgres 856 854 0 15:38? 00:00:00 postgres:checkpointer进程postgres 857 854 0 15:38? 00:00:00 postgres:writer process postgres 858 854 0 15:38? 00:00:00 postgres:沃尔作家进程postgres 859 854 0 15:38? 00:00:00 postgres:autovacuum启动器进程postgres 860 854 0 15:38? 00:00:01 postgres:stats收集器进程postgres 5949 854 0 17:31? 00:00:19 postgres:postgres postgres 73.237.197.185(60776)idle kzherbe + 6226 5963 0 18:37 pts/0 00:00:00 grep post –

+0

这些是运行ps -ef | grep“后”检查服务器基于这个职位:http://stackoverflow.com/questions/30095546/postgresql-weird-error-could-not-connect-to-database-template1-could-not-conne –

回答

1

问题是你试图安装的数据库(Unified New York City Taxi和Uber数据)假定你从头开始安装PostreSQl,而不是使用Bitnami Image中包含的那个。

您使用的脚本假定连接数据库的用户与您用来通过SSH连接到您的服务器的系统用户相同(在您的案例中为kzherbert)。但是,您尝试使用的密码是用户postgres

你需要使用谷歌提供您的密码和用户Postgres的和创建用户kzherbert与你想要的密码连接到PG。