gpt4 book ai didi

Pgadmin4 gives sqlite3.OperationalError - no such column after upgrade [closed](Pgadmin4出现sqlite3.OperationalError-升级后没有这样的列[已关闭])

转载 作者:bug小助手 更新时间:2023-10-26 20:36:16 42 4
gpt4 key购买 nike




I was using Postgres 14 and PGAdmin4 6.7 for a long while and everything was fine. This is on Windows 11. Yesterday I tried upgrading to Postgres 15 and PGAdmin4 7.6 and that's where it fell apart!

我用了很长时间的Postgres 14和PGAdmin4 6.7,一切都很好。这是在Windows11上。昨天我试着升级到Postgres 15和PGAdmin4 7.6,但这就是它失败的地方!


Postgres 15 is fine and the installation was smooth. But PGAdmin4 is no longer working!

Postgres 15很好,安装很顺利。但是PGAdmin 4已经不工作了!


It's giving the following error after I enter a password:

在我输入密码后,它给出以下错误:


enter image description here


The interface doesn't show any databases after I get that error. I've tried uninstalling PGAdmin4 and reinstalling the latest version 7.6. I also tried downgrading various versions going all the way back to the original I had running which was version 6.7. None of the versions I tried worked and they all gave the same error.

在我收到该错误后,界面没有显示任何数据库。我已经尝试卸载PGAdmin4并重新安装最新版本7.6。我还尝试将各种版本降级,一直到我运行的原始版本6.7。我尝试的版本都不起作用,它们都给出了相同的错误。


I do have SQLite3 on my system, but I don't see how that has anything to do with my postgres install! I can use postgres fine on the command line, but I'd really like to have PGAdmin4 working again! I'm out of ideas and would appreciate some help getting this working again!

我的系统上确实安装了SQLite3,但我看不出这与我的Postgres安装有什么关系!我可以在命令行上很好地使用postgres,但我真的希望PGAdmin4能够再次工作!我没主意了,希望能帮我把它弄回来!


更多回答

1) I'm guessing pgAdmin4 is using a SQLite3 database for its local store. 2) This is something you should be asking the pgadmin-support list. You will need to setup a Postgres community account to subscribe to the list.

1)我猜测pgAdmin4正在为其本地存储使用SQLite3数据库。2)这是您应该向pgadmin-Support列表询问的问题。您需要设置Postgres社区帐户才能订阅该列表。

优秀答案推荐

The specific error mentions that there is no column named "server.hostaddr" in your SQL query. This column is what pgAdmin uses to connect to the target host, it uses a sqllite database.

该特定错误指出,您的SQL查询中没有名为“server.host addr”的列。此列是pgAdmin用来连接到目标主机的列,它使用一个SQLLite数据库。


You can try deleting all pgAdmin configuration, this will also delete all configurations of servers in it.

您可以尝试删除所有pgAdmin配置,这也会删除其中服务器的所有配置。


Go to Help click in About pgAdmin4, look for the variable DATA_DIR in the server configuration window. Go there and delete the file pgadmin.db.

转到Help,点击About pgAdmin4,在服务器配置窗口中查找变量DATA_DIR。转到那里并删除文件pgadmin.db。


Here is a video with more details on installing postgres 15 and pgAdmin 4

下面是一个视频,详细介绍了如何安装postgres 15和pgAdmin 4


https://youtube.com/watch?v=0n41UTkOBb0&si=TdqIB2aZR7CDUZ1y

Https://youtube.com/watch?v=0n41UTkOBb0&si=TdqIB2aZR7CDUZ1y



pgAdmin stores its metadata, like your custom settings and the server connections, in an Sqlite database file. The error indicates that the format of that database has changed, and the old database does not match the schema required for the new version of pgAdmin.

PgAdmin将其元数据存储在Sqlite数据库文件中,就像您的定制设置和服务器连接一样。该错误指示该数据库的格式已更改,旧数据库与新版本的pgAdmin所需的架构不匹配。


The easiest way to fix the problem is to delete the database. Then pgAdmin will create a new one the next time you start it. You will have lost all your definitions, but the error will be gone.

解决该问题的最简单方法是删除数据库。然后,pgAdmin将在您下次启动它时创建一个新的。您将丢失所有定义,但错误将消失。


The database is called pgadmin4.db, and I'd look for it in %appdata%\pgAdmin on Windows.

数据库名为pgadmin4.db,我将在Windows上的%AppData%\pgAdmin中查找它。


更多回答

42 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com