$ createuser -hlocalhost -U postgres? -lrd -P ttt
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) y
上面的命令就可以實現在postgres上創建用戶
刪除用戶
$ dropuser zhangyi? -U postgres -hlocalhost
|----------------------------------------------------------------------------------------|
版權聲明 版權所有 @zhyiwww
引用請注明來源 http://www.aygfsteel.com/zhyiwww
|----------------------------------------------------------------------------------------|