删除/删除服务器组时出错:pgAdmin 中的“test”

问题描述 投票:0回答:1

我刚刚在我的家用计算机上安装了 postgresSQL 来尝试创建一个数据库,在安装之后,我在除了未选择的堆栈构建器之外的所有内容上单击“是”,因为我不想安装任何插件,只是计划创建一个快速数据库。但是,每当由于某种原因安装它时,我在服务器组“服务器”中都没有任何东西,而我遵循的教程中的人在那里有一个数据库https://www.youtube.com/watch?v=0n41UTkOBb0 。我也无法在其中添加任何内容,所以我决定在 pgAdmin 中创建一个新的服务器组(我被允许单击的唯一选项),所以我在尝试之后将其命名为“test”,但我也无法添加内容,所以我尝试删除它,但是现在我收到此错误(版本 15.2-1-windows)(pgAdmin 4)

(sqlite3.OperationalError) no such column: server.hostaddr [SQL: SELECT server.id AS server_id, server.user_id AS server_user_id, server.servergroup_id AS server_servergroup_id, server.name AS server_name, server.host AS server_host, server.hostaddr AS server_hostaddr, server.port AS server_port, server.maintenance_db AS server_maintenance_db, server.username AS server_username, server.password AS server_password, server.save_password AS server_save_password, server.role AS server_role, server.ssl_mode AS server_ssl_mode, server.comment AS server_comment, server.discovery_id AS server_discovery_id, server.db_res AS server_db_res, server.passfile AS server_passfile, server.passexec_cmd AS server_passexec_cmd, server.passexec_expiration AS server_passexec_expiration, server.sslcert AS server_sslcert, server.sslkey AS server_sslkey, server.sslrootcert AS server_sslrootcert, server.sslcrl AS server_sslcrl, server.sslcompression AS server_sslcompression, server.bgcolor AS server_bgcolor, server.fgcolor AS server_fgcolor, server.service AS server_service, server.connect_timeout AS server_connect_timeout, server.use_ssh_tunnel AS server_use_ssh_tunnel, server.tunnel_host AS server_tunnel_host, server.tunnel_port AS server_tunnel_port, server.tunnel_username AS server_tunnel_username, server.tunnel_authentication AS server_tunnel_authentication, server.tunnel_identity_file AS server_tunnel_identity_file, server.tunnel_password AS server_tunnel_password, server.shared AS server_shared, server.kerberos_conn AS server_kerberos_conn, server.cloud_status AS server_cloud_status, servergroup_1.id AS servergroup_1_id, servergroup_1.user_id AS servergroup_1_user_id, servergroup_1.name AS servergroup_1_name FROM server LEFT OUTER JOIN servergroup AS servergroup_1 ON servergroup_1.id = server.servergroup_id WHERE server.servergroup_id = ? AND server.shared = 1] [parameters: (2,)] (Background on this error at: https://sqlalche.me/e/14/e3q8)

我尝试右键单击它,然后单击“删除服务器组”,并期望它被删除,但它没有

pgadmin-4
1个回答
4
投票

我遇到了同样的问题,在 pgAdmin 4 中无法删除两个服务器组。 我找到的唯一解决方案是删除 pgAdmin 的数据。

警告:这将删除已保存服务器的所有配置。

转到Help -> About pgAdmin4,在服务器配置窗口中查找变量

DATA_DIR
。去那里删除文件
pgadmin.db

再次强调,如果您关心 pgAdmin 配置,您可能需要更深入地了解其后果。我没在意,直接删除了。

© www.soinside.com 2019 - 2024. All rights reserved.