盤古云 SequoiaDB數(shù)據(jù)庫MySQL實(shí)例應(yīng)用開發(fā)
啟動(dòng)/開機(jī)啟動(dòng) PostgreSQL:
systemctl start postgresql.servicesystemctl enable postgresql.service
切換到postgres用戶,然后登錄(初始無密碼):
sudo -i -u postgrespsql
要退出psql或返回原用戶,都是用exit
命令。PostgreSQL的用戶跟系統(tǒng)用戶有些關(guān)聯(lián),前者必須也是后者。在初始化過程中會(huì)在系統(tǒng)中創(chuàng)建postgres用戶,同時(shí)也是數(shù)據(jù)庫的超級(jí)權(quán)限用戶,postgres用戶可以創(chuàng)建其他
標(biāo)簽: