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

PostgreSQL8.3.3安裝方法第1/2頁

 更新時(shí)間:2008年09月12日 18:11:29   作者:  
非安裝版的PostgreSQL8.3.3的首次使用經(jīng)歷第一次用Postgre,已經(jīng)是好多年以前了,隱約記得是在linux下邊,build半天,然后手動(dòng)配置庫文件之類。
今天在整理資料的時(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ù)庫系統(tǒng)的文件宿主為用戶 "******".
此用戶也必須為服務(wù)器進(jìn)程的宿主.
數(shù)據(jù)庫簇將帶有 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ù)庫系統(tǒng)的文件宿主為用戶 "hex".
此用戶也必須為服務(wù)器進(jìn)程的宿主.
數(shù)據(jù)庫簇將帶有 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ù)庫系統(tǒng)的文件宿主為用戶 "hex".
此用戶也必須為服務(wù)器進(jìn)程的宿主.
數(shù)據(jù)庫簇將帶有 locale C 初始化.
默認(rèn)的數(shù)據(jù)庫編碼已經(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ù)庫 ... 成功
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ù)庫 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)論

墨竹工卡县| 宝坻区| 霸州市| 长汀县| 苏尼特左旗| 凤凰县| 扎兰屯市| 聂拉木县| 肇东市| 西盟| 垦利县| 玉林市| 敖汉旗| 缙云县| 涞水县| 迁西县| 东港市| 左云县| 古蔺县| 温宿县| 福建省| 汽车| 阜康市| 永靖县| 黄梅县| 额尔古纳市| 抚远县| 肥西县| 沁阳市| 蒙阴县| 莎车县| 吉水县| 吕梁市| 万年县| 苏尼特左旗| 静乐县| 本溪市| 长丰县| 宜宾县| 武汉市| 泽普县|