偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

CREATE USER 中文man頁面

系統(tǒng)
CREATE USER 向一個 PostgreSQL 數(shù)據(jù)庫集群增加一個新用戶。 參考 Chapter 17 ``Database Users and Privileges'' 和 Chapter 19 ``Client Authentication'' 獲取關(guān)于管理用戶和認(rèn)證的信息。 要執(zhí)行這條命令,你必須是一個數(shù)據(jù)庫超級用戶。

NAME

CREATE USER - 創(chuàng)建一個新的數(shù)據(jù)庫用戶帳戶

SYNOPSIS

CREATE USER name [ [ WITH ] option [ ... ] ]

where option can be:
    
      SYSID uid 
    | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password'
    | CREATEDB | NOCREATEDB
    | CREATEUSER | NOCREATEUSER
    | IN GROUP groupname [, ...]
    | VALID UNTIL 'abstime' 

DESCRIPTION 描述

CREATE USER 向一個 PostgreSQL 數(shù)據(jù)庫集群增加一個新用戶。 參考 Chapter 17 ``Database Users and Privileges'' 和 Chapter 19 ``Client Authentication'' 獲取關(guān)于管理用戶和認(rèn)證的信息。 要執(zhí)行這條命令,你必須是一個數(shù)據(jù)庫超級用戶。  

PARAMETERS 參數(shù)

name

 用戶名
uid
SYSID 子句可以用于選擇正在被創(chuàng)建的用戶的 PostgreSQL 用戶標(biāo)識。 通常這是不必要的,但是如果你想恢復(fù)一個孤兒對象的所有者,也許這個很有用。


 如果沒有聲明這個,缺省使用已分配的***用戶標(biāo)識加一(最小是 100)。

password

 設(shè)置用戶的口令,如果你不準(zhǔn)備使用口令認(rèn)證, 那么你可以省略這個選項,但如果你想切換到一個口令認(rèn)證的服務(wù)器,那么該用戶將不能聯(lián)接。 此口令可以稍后再次設(shè)置或者修改,使用 ALTER USER [alter_user(7)]。
ENCRYPTED
UNENCRYPTED
控制口令在數(shù)據(jù)庫中是否以加密形式存儲在系統(tǒng)表中。 (如果兩個都沒有設(shè)置,那么缺省的特性是由配置參數(shù) password_encryption 決定的。) 如果提供的字串已經(jīng)是 MD5 加密的格式,那么就照原樣存儲, 不管聲明的是 ENCRYPTED 還是 UNENCRYPTED。 這樣就允許在轉(zhuǎn)儲/恢復(fù)的過程中重載加密后的口令。


 請注意老的客戶端可能缺少 MD5 認(rèn)證機(jī)制,我們需要這個認(rèn)證機(jī)制處理存儲為密文的口令。

CREATEDB
NOCREATEDB
這個子句定義用戶的創(chuàng)建數(shù)據(jù)庫權(quán)限。 如果聲明了CREATEDB, 被定義的用戶將允許創(chuàng)建其自己的數(shù)據(jù)庫。 而使用NOCREATEDB將否決該用戶的創(chuàng)建數(shù)據(jù)庫的能力。 如果忽略本子句,缺省是NOCREATEDB。
CREATEUSER
NOCREATEUSER

 該子句決定一個用戶是否能創(chuàng)建一個新的用戶。 這個選項同樣把此用戶變成數(shù)據(jù)庫超級用戶,可以跨越所有訪問限制。省略這個參數(shù)將置用戶的這個屬性為 NOCREATEUSER。
groupname

 一個組名稱,把這個用戶設(shè)為該組成員。 你可以列出多個組名字。
abstime
VALID UNTIL (有效期)子句設(shè)置一個絕對時間, 過了該時間后用戶的口令將不再有效。 如果省略這個子句,登陸將總是有效的。

NOTES 注意


 使用 ALTER USER [alter_user(7)] 修改用戶的口令和權(quán)限,DROP USER [drop_user(7)] 刪除一個用戶。 使用 ALTER GROUP [alter_group(l)] 從組中增加或刪除用戶。

PostgreSQL 里有一個程序 createuser [createuser(1)] 與CREATE USER 有相同的功能(實際上,它調(diào)用這條命令), 但是可以在命令行上運(yùn)行。  

EXAMPLES 例子


 創(chuàng)建一個沒有口令的用戶:

CREATE USER jonathan;


 創(chuàng)建一個有口令的用戶:

CREATE USER davide WITH PASSWORD 'jw8s0F4';


 創(chuàng)建一個有口令的用戶,其帳號在 2004 年底失效。 注意當(dāng) 2005 年走過一秒后,該帳號將不再有效:

CREATE USER miriam WITH PASSWORD 'jw8s0F4' VALID UNTIL '2005-01-01';


 創(chuàng)建一個擁有創(chuàng)建數(shù)據(jù)庫權(quán)限的用戶:

CREATE USER manuel WITH PASSWORD 'jw8s0F4' CREATEDB;

COMPATIBILITY 兼容性

CREATE USER 語句是 PostgreSQL 擴(kuò)展。 SQL 標(biāo)準(zhǔn)把用戶的定義交給具體實現(xiàn)處理。  

SEE ALSO 參見

ALTER USER [alter_user(7)], DROP USER [drop_user(l)], createuser(1)  

#p#

NAME

CREATE USER - define a new database user account

SYNOPSIS

CREATE USER name [ [ WITH ] option [ ... ] ]

where option can be:
    
      SYSID uid 
    | [ ENCRYPTED | UNENCRYPTED ] PASSWORD 'password'
    | CREATEDB | NOCREATEDB
    | CREATEUSER | NOCREATEUSER
    | IN GROUP groupname [, ...]
    | VALID UNTIL 'abstime' 

DESCRIPTION

CREATE USER adds a new user to a PostgreSQL database cluster. Refer to the chapters called ``Database Users and Privileges'' and ``Client Authentication'' in the documentation for information about managing users and authentication. You must be a database superuser to use this command.  

PARAMETERS

name
The name of the user.
uid
The SYSID clause can be used to choose the PostgreSQL user ID of the user that is being created. This is not normally not necessary, but may be useful if you need to recreate the owner of an orphaned object.

If this is not specified, the highest assigned user ID plus one (with a minimum of 100) will be used as default.

password
Sets the user's password. If you do not plan to use password authentication you can omit this option, but then the user won't be able to connect if you decide to switch to password authentication. The password can be set or changed later, using ALTER USER [alter_user(7)].
ENCRYPTED
UNENCRYPTED
These key words control whether the password is stored encrypted in the system catalogs. (If neither is specified, the default behavior is determined by the configuration parameter PASSWORD_ENCRYPTION.) If the presented password string is already in MD5-encrypted format, then it is stored encrypted as-is, regardless of whether ENCRYPTED or UNENCRYPTED is specified (since the system cannot decrypt the specified encrypted password string). This allows reloading of encrypted passwords during dump/restore.

Note that older clients may lack support for the MD5 authentication mechanism that is needed to work with passwords that are stored encrypted.

CREATEDB
NOCREATEDB
These clauses define a user's ability to create databases. If CREATEDB is specified, the user being defined will be allowed to create his own databases. Using NOCREATEDB will deny a user the ability to create databases. If this clause is omitted, NOCREATEDB is used by default.
CREATEUSER
NOCREATEUSER
These clauses determine whether a user will be permitted to create new users himself. This option will also make the user a superuser who can override all access restrictions. Omitting this clause will set the user's value of this attribute to be NOCREATEUSER.
groupname
A name of a group into which to insert the user as a new member. Multiple group names may be listed.
abstime
The VALID UNTIL clause sets an absolute time after which the user's password is no longer valid. If this clause is omitted the login will be valid for all time.

NOTES

Use ALTER USER [alter_user(7)] to change the attributes of a user, and DROP USER [drop_user(7)] to remove a user. Use ALTER GROUP [alter_group(l)] to add the user to groups or remove the user from groups.

PostgreSQL includes a program createuser [createuser(1)] that has the same functionality as CREATE USER (in fact, it calls this command) but can be run from the command shell.  

EXAMPLES

Create a user with no password:

CREATE USER jonathan;

Create a user with a password:

CREATE USER davide WITH PASSWORD 'jw8s0F4';

Create a user with a password that is valid until the end of 2004. After one second has ticked in 2005, the password is no longer valid.

CREATE USER miriam WITH PASSWORD 'jw8s0F4' VALID UNTIL '2005-01-01';

Create an account where the user can create databases:

CREATE USER manuel WITH PASSWORD 'jw8s0F4' CREATEDB;

COMPATIBILITY

The CREATE USER statement is a PostgreSQL extension. The SQL standard leaves the definition of users to the implementation.  

SEE ALSO

ALTER USER [alter_user(7)], DROP USER [drop_user(l)], createuser(1)

責(zé)任編輯:韓亞珊 來源: CMPP.net
相關(guān)推薦

2011-08-24 10:46:36

CREATE AGGR中文man

2011-08-24 10:56:32

CREATE CONV中文man

2011-08-24 11:15:24

CREATE INDE中文man

2011-08-24 13:29:20

CREATE TABL中文man

2011-08-24 13:36:25

CREATE TRIG中文man

2011-08-24 13:46:39

CREATE VIEW中文man

2011-08-24 13:32:56

CREATE TABL中文man

2011-08-24 10:59:19

CREATE DATA中文man

2011-08-24 11:02:11

CREATE DOMA中文man

2011-08-24 11:05:36

CREATE FUNC中文man

2011-08-24 11:10:17

CREATE GROU中文man

2011-08-24 11:18:53

CREATE LANG中文man

2011-08-24 11:23:20

CREATE OPER中文man

2011-08-24 11:31:47

CREATE RULE中文man

2011-08-24 13:23:10

CREATE SCHE中文man

2011-08-24 13:26:19

CREATE SEQU中文man

2011-08-24 13:39:44

CREATE TYPE中文man

2011-08-24 09:51:53

alter_user中文man

2011-08-24 14:59:50

drop_user中文man

2011-08-24 10:53:20

CREATE CONS中文man
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號