我也经历过类似的问题,但没有找到任何可行的解决办法。在
我尝试在我的Django项目中使用djang-dbbackup
模块。
我运行$ python manage.py dbbackup
并得到以下错误:
CommandConnectorError: Error running: pg_dump last_cosmetics --host=localhost --username=postgres --no-password --clean
b'pg_dump: too many command-line arguments (first is "--host=localhost")\r\nTry "pg_dump --help" for more information.\r\n'
我还试着在Windows命令下运行它。在
^{pr2}$但我还是犯了同样的错误。在
您可以检查here中的语法。在
数据库名称应该是所有选项后的最后一个参数。在
因此,在您的案例中使用:
相关问题 更多 >
编程相关推荐