国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數(shù)據(jù)庫(kù) > PostgreSQL > 正文

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

2020-10-29 21:55:06
字體:
供稿:網(wǎ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ù)庫(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


12下一頁閱讀全文
發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 乌海市| 玛沁县| 丹巴县| 凤阳县| 贡觉县| 黄平县| 朝阳县| 大丰市| 仁怀市| 巴中市| 隆尧县| 札达县| 介休市| 花莲县| 惠水县| 霍山县| 定南县| 浑源县| 邛崃市| 长子县| 临洮县| 漯河市| 万荣县| 长兴县| 新田县| 南陵县| 平远县| 彰化市| 瑞昌市| 都安| 榆树市| 隆尧县| 昭通市| 同心县| 阳西县| 桓台县| 渭源县| 沈阳市| 如东县| 临高县| 郓城县|