時(shí)間:2024-02-13 10:22作者:下載吧人氣:25
1、可通過客戶端pgAdmin III直接登錄
2、可通過命令行
命令:psql -h 10.10.10.10 -U user -d postgres -p 5570
-h:數(shù)據(jù)庫IP
-U:登錄用戶
-d:登錄的數(shù)據(jù)庫
-p:登錄端口
方法:進(jìn)入postgreSQL的客戶端安裝目錄(我的安裝目錄:C:Program FilesPostgreSQL9.4bin),執(zhí)行psql命令,其中q表示退出數(shù)據(jù)庫
直接執(zhí)行以下sql即可修改密碼
alter user pguser with password ‘new password’;
網(wǎng)友評(píng)論