pgAdmin: sqlite3 OperationalError: no such column: server

huangapple go评论58阅读模式
英文:

pgAdmin: sqlite3 OperationalError: no such column: server

问题

抱歉,我不能处理代码部分。以下是您提供的文字的翻译:

我正在使用Postgres和pgAdmin。在将pgAdmin更新到最新版本(6.21)后,我遇到了这个错误:

> sqlite3 OperationalError: no such column: server...

错误的底部有一个链接(这里)。

在单击“服务器”按钮(基本上,当我尝试打开服务器列表时)并输入主密码后,发生此错误。

我尝试过重新安装pgAdmin,但没有任何效果。我对数据库、Postgres和pgAdmin都很陌生。您有什么建议吗?谢谢!

英文:

I'm working with Postgres and pgAdmin. After updating pgAdmin to the newest version (6.21), I get this error:

> sqlite3 OperationalError: no such column: server...

At the bottom of the error there is a link (here).

This error occurs after entering the master password when clicking on the "server"-button (basically, when I try to open the list of the servers).

I've tried to reinstall pgAdmin, but nothing works. I'm new to databases, Postgres and pgAdmin. Any suggestions on what I could try? Thank you!

答案1

得分: 2

我犯了同样的错误。您可以通过一个技巧来解决问题(不使用主密码),但这并不是解决问题根本原因的方法。

请务必考虑后果,确定您真的想避免使用主密码!您可以在这里找到文档:https://www.pgadmin.org/docs/pgadmin4/latest/master_password.html

要禁用主密码,按照以下步骤操作:
1)定位您的config.py文件(例如,C:\Program Files\pgAdmin 4\v7\web)
2)在此目录中创建一个名为"Config_local.py"的新文件,并添加一行MASTER_PASSWORD_REQUIRED = False。如果"Config_local.py"已经存在,请编辑它,并在文件底部添加这一行。保存文件。
3)关闭PGAdmin4,然后重新打开它。现在您应该能够访问PGAdmin而无需主密码。

但也许有人真的可以解决这个问题,我已经捕捉到了这个消息的截图(它会在屏幕上显示几秒钟然后消失):
pgadmin_sqlite3_OperationalError

英文:

I've got the same mistake. You can handle the problem with a trick (no usage of masterpassword), but it's not a solution of the cause.

Please be sure about the consequences and if you really want to avoid the masterpassword! You can find the documentation is here: https://www.pgadmin.org/docs/pgadmin4/latest/master_password.html

To disable the master password these are the steps:

  1. locate your config.py file (e.g. C:\Program Files\pgAdmin 4\v7\web)
  2. In this directory create a new file named "Config_local.py" and add the line MASTER_PASSWORD_REQUIRED = False. If the "Config_local.py" already exist, edit it, and add the line at the bottom of the file. Save the file.
  3. Close PGAdmin4 and reopen it. You should now be able to access PGAdmin without the master password.

But maybe someone can REALLY solve the problem, I've made a screeshot of the message (I accures for a few seconds and disappears):
pgadmin_sqlite3_OperationalError

huangapple
  • 本文由 发表于 2023年4月6日 20:25:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/75949483.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定