Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Postgresql 无法在google云平台上初始化数据库_Postgresql_Google Cloud Platform_Bitnami - Fatal编程技术网

Postgresql 无法在google云平台上初始化数据库

Postgresql 无法在google云平台上初始化数据库,postgresql,google-cloud-platform,bitnami,Postgresql,Google Cloud Platform,Bitnami,这是我正在尝试安装的数据库,附带4条简短说明,非常容易遵循: 我使用git clone将存储库带到我的vm。接下来我将cd放入其中并运行initialize_database.sh。发生的情况如下: 我尝试使用的密码是我的Bitnami启动板提供的,上面说管理员用户是postgres,但当我使用它时,它会说我的google帐户kzherbert。我试过su postgres,但它不是服务器上的用户,所以它不能像那样工作。我可以为psql-U postgres使用postgres密码,这将带我到

这是我正在尝试安装的数据库,附带4条简短说明,非常容易遵循:

我使用git clone将存储库带到我的vm。接下来我将cd放入其中并运行initialize_database.sh。发生的情况如下:

我尝试使用的密码是我的Bitnami启动板提供的,上面说管理员用户是postgres,但当我使用它时,它会说我的google帐户kzherbert。我试过su postgres,但它不是服务器上的用户,所以它不能像那样工作。我可以为psql-U postgres使用postgres密码,这将带我到psql终端。此外,我也尝试过使用我的谷歌帐户密码,但它不起作用。这张图片真正让我感兴趣的是shapefile的相关位置,以及为什么它会重复并且不允许我退出


非常感谢所有帮助。

问题在于,您试图安装纽约市统一出租车和优步数据的数据库假定您是从头开始安装PostreSQl,而不是使用Bitnami映像中包含的数据库

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


您需要使用谷歌为您和用户postgres提供的密码连接到PG,并使用所需密码创建用户kzherbert。

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博士后:作者处理博士后858 854 0 15:38?00:00:00 postgres:wal writer处理postgres 859 854 0 15:38?00:00:00 postgres:autovacuum launcher process postgres 860 854 0 15:38?00:00:01发帖:统计数据收集器处理发帖5949 854 0 17:31?00:00:19 postgres:postgres postgres 73.237.197.18560776空闲kzherbe+6226 5963 0 18:37 pts/0 00:00:00 grep post这些是运行ps-ef | grep post以基于此post检查服务器的结果: