嗨,大家好,我试图在Azure上托管的数据库上应用deploy命令。但是,我遇到了以下错误:
sqitch deploy db:pg://cmurcia%40dataplatform:*****@dataplatform.postgres.database.azure.com:5432/dataplatform_metadata_service
Adding registry tables to db:pg://cmurcia%40dataplatform:@dataplatform.postgres.database.azure.com:5432/dataplatform_metadata_service
psql:/usr/share/perl5/App/Sqitch/Engine/pg.sql:4: ERROR: permission denied for database dataplatform_metadata_service
"/usr/bin/psql" unexpectedly returned exit value 3
I tested with psql and I can both log in and modify tables in the database that is accessed with the mentioned URI (db:pg://cmurcia%40dataplatform:*****@dataplatform.postgres.database.azure.com:5432/dataplatform_metadata_service).
我也尝试过
sqitch deploy -t postgresql://cmurcia%40dataplatform:Welcome0518%21@dataplatform.postgres.database.azure.com:5432/dataplatform_metadata_service
Adding registry tables to db:postgresql://cmurcia%40dataplatform:@dataplatform.postgres.database.azure.com:5432/dataplatform_metadata_service
psql:/usr/share/perl5/App/Sqitch/Engine/pg.sql:4: ERROR: permission denied for database dataplatform_metadata_service
"/usr/bin/psql" unexpectedly returned exit value
3
我想问一下您是否有解决此问题的提示。谢谢!
仅供参考,我正在使用azure上托管的ubuntu linux VM运行我安装sqitch的命令,而sqitch在本地运行。
答案 0 :(得分:0)
Sqitch连接到数据库时要做的第一件事是创建注册表(如果尚不存在)。通常,这是一个名为sqtich
的架构。看看Postgres registry script。确保您具有创建架构的权限。如果没有,请让其他人创建它,并授予您在其中创建对象以及项目模式的权限。