我已經開始學習 SQL 并在我的 Ubuntu 上安裝了 Valentina Studio 和 PSQL。
我通過sudo -u postgres psql postgres和 然后定義了一個密碼\password postgres。
然后,我Valentina Studio使用“discover localhost server - it found thePostgresSQL ”進入并連接到該服務器,并輸入了我之前在終端中設定的密碼,它看起來沒問題,就像已連接一樣。
我在 中創建了 4 個空的新資料庫,VStudio并嘗試將一些位于我桌面上的資料庫匯入它們。
database does not exist正如你在螢屏截圖中看到的那樣,我得到了它。當我嘗試對template1psql 的 skelton 資料庫做同樣的事情時,它奏效了。
但是為什么 Vstudio 和 PSQL 沒有相互連接呢?

uj5u.com熱心網友回復:
以用戶身份重新創建template1資料庫的示例。psqlpostgres
update pg_database set datistemplate = 'f' where datname = 'template1';
drop database template1;
create database template1 template template0 is_template true ;
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/332883.html
標籤:sql 数据库 PostgreSQL 本地主机 情人节工作室
上一篇:recv總是回傳EAGAIN,但tcpdump顯示有0個資料包被內核丟棄。
下一篇:android房間關系:缺少列
