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
為了試驗(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)文章
關(guān)于Navicat連接MySql數(shù)據(jù)庫慢的問題
這篇文章主要介紹了關(guān)于Navicat連接MySql數(shù)據(jù)庫慢的問題,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2021-03-03pgsql binlog監(jiān)聽功能點(diǎn)解析
這篇文章主要為大家介紹了pgsql binlog監(jiān)聽功能點(diǎn)解析,有需要的朋友可以借鑒參考下,希望能夠有所幫助,祝大家多多進(jìn)步,早日升職加薪2023-02-02數(shù)據(jù)庫中的左連接(left join)和右連接(right join)區(qū)別
關(guān)于左連接和右連接總結(jié)性的一句話,左連接 where只影向右表,右連接where只影響左表2012-06-06關(guān)于navicat事務(wù)自動(dòng)提交問題
這篇文章主要介紹了關(guān)于navicat事務(wù)自動(dòng)提交問題,本文給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2020-12-12站內(nèi)群發(fā)消息三種不同用戶量的數(shù)據(jù)庫設(shè)計(jì)
很多SNS網(wǎng)站和一部分CMS網(wǎng)站都廣泛地應(yīng)用了站內(nèi)信這一模塊,這個(gè)看似簡(jiǎn)單的東西其實(shí)背后隱藏著很多需要設(shè)計(jì)師重視的設(shè)計(jì)細(xì)節(jié),要做好這個(gè)“郵遞員”是很不容易的,本文講述站內(nèi)群發(fā)消息三種不同用戶量的數(shù)據(jù)庫設(shè)計(jì),逐漸設(shè)計(jì)一個(gè)百萬級(jí)用戶量的站內(nèi)信群發(fā)數(shù)據(jù)庫2023-12-12Navicat保存查詢和查詢文件放在哪個(gè)位置最佳方法推薦
這篇文章主要介紹了Navicat保存查詢和查詢文件放在哪個(gè)位置,本文通過圖文并茂的形式給大家介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或工作具有一定的參考借鑒價(jià)值,需要的朋友可以參考下2023-08-08關(guān)于若干數(shù)據(jù)庫數(shù)據(jù)插入性能的對(duì)比分析
前幾天,苦惱于到底使用哪一種本地?cái)?shù)據(jù)庫來存儲(chǔ)部分?jǐn)?shù)據(jù),于是決定做一個(gè)數(shù)據(jù)插入測(cè)試進(jìn)行求證2011-10-10