時間:2024-03-04 00:33作者:下載吧人氣:32
在UNIX平臺中安裝PostgreSQL之后,PostgreSQL會在UNIX系統(tǒng)中創(chuàng)建一個名為“postgres”當(dāng)用戶。PostgreSQL的默認(rèn)用戶名和數(shù)據(jù)庫也是“postgres”,
不過沒有默認(rèn)密碼。在安裝PostgreSQL之后可以以默認(rèn)用戶登錄,也可以創(chuàng)建新當(dāng)用戶名。
Yu @Coat ~ $ sudo su postgres #切換至postgres
postgres @Coat /home /Yu $ psql postgres #登入默認(rèn)數(shù)據(jù)庫
[ sudo ] password for Yu:
psql (9.1.6 )
Type “help” for help.
網(wǎng)友評論