错误:必须是数据库的所有者

编程入门 行业动态 更新时间:2024-10-24 10:27:49
本文介绍了错误:必须是数据库的所有者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想删除一个名为 mysitedb的特定数据库,所以我要做的是打开终端并输入命令 dropdb mysitedb,然后弹出错误 ERROR:必须是数据库mysitedb的所有者。我知道用户名并通过了特定的数据库,但是没有删除它的线索。我是Postgresql的新手。温柔:P

I want to delete a particular database which I have named 'mysitedb' so what I did is I opened the terminal and entered the command 'dropdb mysitedb' then the error 'ERROR: must be owner of database mysitedb' pops up. I know the username and pass for the particular database but don't have a clue on deleting it. I am new to postgresql. be gentle :P

推荐答案

问:我想删除一个名为$的特定数据库b $ b'mysitedb',所以我要做的是打开终端并输入命令'dropdb mysitedb',然后弹出错误'ERROR:必须是数据库mysitedb的所有者...

Q: I want to delete a particular database which I have named 'mysitedb' so what I did is I opened the terminal and entered the command 'dropdb mysitedb' then the error 'ERROR: must be owner of database mysitedb' pops up...

确定-这意味着您没有正确的凭据。您需要具有删除该数据库权限的PostgreSQL用户的用户名/密码。

OK - this means you don't have the right credentials. You need the username/password of a postgresql user with permissions to delete that database.

注意:我知道拥有该数据库的用户。我也知道密码。

NOTE: I know the user who owns it. Also I know the password.

什么 ???

无论如何:您要 dropdb 命令:

dropdb -U db_owner_username -i [-h主机] mysitedb

这是Postgresql文档页面:

Here is the Postgresql documentation page:

  • www.postgresql/docs / manuals /
  • www.postgresql/docs/manuals/

更多推荐

错误:必须是数据库的所有者

本文发布于:2023-10-15 02:40:56,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1493011.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:所有者   错误   数据库

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!