最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

PostgreSQL8.3.3安裝方法第1/2頁(yè)

 更新時(shí)間:2008年09月12日 18:11:29   作者:  
非安裝版的PostgreSQL8.3.3的首次使用經(jīng)歷第一次用Postgre,已經(jīng)是好多年以前了,隱約記得是在linux下邊,build半天,然后手動(dòng)配置庫(kù)文件之類。
今天在整理資料的時(shí)候發(fā)現(xiàn),Postgre出現(xiàn)了解壓縮直接使用的版本,上邊注明了for expert only. 呵呵,看來,不推薦生手使用。

為了試驗(yàn)一把,索性從它的官網(wǎng)上直接下載了一份postgresql-8.3.3-1-binaries-no-installer.zip



1. 將其解壓到d:\pgsql8.3.3

2. 設(shè)置環(huán)境變量,我不想直接添加,而是寫到了一個(gè)batch文件里,名為pgenv.bat

set PGHOME=d:\pgsql8.3.3
set PATH=%PGHOME%\bin;%path%
set PGHOST=localhost
set PGLIB=%PGHOME%\lib
set PGDATA=%PGHOME%\data



3.

執(zhí)行 pgenv.bat

然后:

D:\pgsql8.3.3\bin>initdb
屬于此數(shù)據(jù)庫(kù)系統(tǒng)的文件宿主為用戶 "******".
此用戶也必須為服務(wù)器進(jìn)程的宿主.
數(shù)據(jù)庫(kù)簇將帶有 locale Chinese_People's Republic of China.936 初始化.
initdb: locale Chinese_People's Republic of China.936 requires unsupported encod
ing GBK
Encoding GBK is not allowed as a server-side encoding.
Rerun initdb with a different locale selection.



這上邊的意思好像是說不直接支持cp936, GBK,暈。于是,強(qiáng)制執(zhí)行:

D:\pgsql8.3.3\bin>initdb --locale=zh_CN
initdb: 無效的 locale 名字 "zh_CN"
initdb: 無效的 locale 名字 "zh_CN"
initdb: 無效的 locale 名字 "zh_CN"
initdb: 無效的 locale 名字 "zh_CN"
initdb: 無效的 locale 名字 "zh_CN"
initdb: 無效的 locale 名字 "zh_CN"
屬于此數(shù)據(jù)庫(kù)系統(tǒng)的文件宿主為用戶 "hex".
此用戶也必須為服務(wù)器進(jìn)程的宿主.
數(shù)據(jù)庫(kù)簇將帶有 locale Chinese_People's Republic of China.936 初始化.
initdb: locale Chinese_People's Republic of China.936 requires unsupported encod
ing GBK
Encoding GBK is not allowed as a server-side encoding.
Rerun initdb with a different locale selection.



還是不行,再換成下邊的:

D:\pgsql8.3.3\bin>initdb --locale=C
屬于此數(shù)據(jù)庫(kù)系統(tǒng)的文件宿主為用戶 "hex".
此用戶也必須為服務(wù)器進(jìn)程的宿主.
數(shù)據(jù)庫(kù)簇將帶有 locale C 初始化.
默認(rèn)的數(shù)據(jù)庫(kù)編碼已經(jīng)相應(yīng)的設(shè)置為 SQL_ASCII.
The default text search configuration will be set to "english".

創(chuàng)建目錄 d:/pgsql8.3.3/data ... 成功
creating subdirectories ... 成功
選擇默認(rèn)最大聯(lián)接數(shù) (max_connections) ... 100
selecting default shared_buffers/max_fsm_pages ... 32MB/204800
創(chuàng)建配置文件 ... 成功
在 d:/pgsql8.3.3/data/base/1 中創(chuàng)建 template1 數(shù)據(jù)庫(kù) ... 成功
initializing pg_authid ... 成功
initializing dependencies ... 成功
創(chuàng)建系統(tǒng)視圖 ... 成功
loading system objects' descriptions ... 成功
創(chuàng)建字符集轉(zhuǎn)換 ... 成功
creating dictionaries ... 成功
對(duì)內(nèi)建對(duì)象設(shè)置權(quán)限 ... 成功
創(chuàng)建信息模式 ... 成功
清理數(shù)據(jù)庫(kù) template1 ... 成功
拷貝 template1 到 template0 ... 成功
copying template1 to postgres ... 成功

警告: 為本地連接啟動(dòng)了 "trust" 認(rèn)證.
你可以通過編輯 pg_hba.conf 更改或你下
次運(yùn)行 initdb 時(shí)使用 -A 選項(xiàng).

Success. You can now start the database server using:

"postgres" -D "d:/pgsql8.3.3/data"
or
"pg_ctl" -D "d:/pgsql8.3.3/data" -l logfile start


相關(guān)文章

最新評(píng)論

色达县| 运城市| 玉门市| 咸宁市| 邮箱| 潜江市| 镇康县| 翼城县| 凤阳县| 即墨市| 金坛市| 灵川县| 监利县| 闸北区| 清河县| 清水河县| 福建省| 北安市| 绥中县| 昌江| 台湾省| 林甸县| 塔城市| 靖边县| 长岭县| 来宾市| 云林县| 寻乌县| 高碑店市| 和静县| 仪陇县| 古交市| 青田县| 清徐县| 龙游县| 紫金县| 陕西省| 西藏| 盘山县| 浦东新区| 孟连|