Postgresql 将本地postgres数据库推送到heroku时出错

Postgresql 将本地postgres数据库推送到heroku时出错,postgresql,heroku,psql,pg,Postgresql,Heroku,Psql,Pg,我有一个简短的问题一直困扰着我一段时间。背景我正在尝试将我的本地博士后迁移到Heroku。我正在使用powershell CLI并使用以下语句 heroku pg:push[MYDATABASE]DATABASE\u URL--app[myheroku-app]。当我提交下一个密码请求时,我知道密码是我的postgres数据库密码。复杂的是我的postgres用户名是postgres,但CLI不会首先请求用户名。我不确定如何用上面的heroku语句解析我的用户名 在我的heroku语句之前,我尝

我有一个简短的问题一直困扰着我一段时间。背景我正在尝试将我的本地博士后迁移到Heroku。我正在使用powershell CLI并使用以下语句

heroku pg:push[MYDATABASE]DATABASE\u URL--app[myheroku-app]
。当我提交下一个密码请求时,我知道密码是我的postgres数据库密码。复杂的是我的postgres用户名是postgres,但CLI不会首先请求用户名。我不确定如何用上面的heroku语句解析我的用户名

在我的heroku语句之前,我尝试了
PGUSER=xxxxxx PGPASSWORD=yyyyyyyy
,但出现了一个错误

请问你能帮忙吗

PGUSER=postgres PGPASSWORD=password heroku pg:push[MYDATABASE]DATABASE\u URL--app[MY heroku app]

PGUSER=postgres : The term 'PGUSER=postgres' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1