PostgreSQL8.3.3安裝方法第1/2頁
更新時間:2008年09月12日 18:11:29 作者:
非安裝版的PostgreSQL8.3.3的首次使用經(jīng)歷第一次用Postgre,已經(jīng)是好多年以前了,隱約記得是在linux下邊,build半天,然后手動配置庫文件之類。
今天在整理資料的時候發(fā)現(xiàn),Postgre出現(xiàn)了解壓縮直接使用的版本,上邊注明了for expert only. 呵呵,看來,不推薦生手使用。
為了試驗一把,索性從它的官網(wǎng)上直接下載了一份postgresql-8.3.3-1-binaries-no-installer.zip
1. 將其解壓到d:\pgsql8.3.3
2. 設(shè)置環(huán)境變量,我不想直接添加,而是寫到了一個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ù)器進程的宿主.
數(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,暈。于是,強制執(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ù)器進程的宿主.
數(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ù)器進程的宿主.
數(shù)據(jù)庫簇將帶有 locale C 初始化.
默認的數(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 ... 成功
選擇默認最大聯(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 ... 成功
對內(nèi)建對象設(shè)置權(quán)限 ... 成功
創(chuàng)建信息模式 ... 成功
清理數(shù)據(jù)庫 template1 ... 成功
拷貝 template1 到 template0 ... 成功
copying template1 to postgres ... 成功
警告: 為本地連接啟動了 "trust" 認證.
你可以通過編輯 pg_hba.conf 更改或你下
次運行 initdb 時使用 -A 選項.
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
為了試驗一把,索性從它的官網(wǎng)上直接下載了一份postgresql-8.3.3-1-binaries-no-installer.zip
1. 將其解壓到d:\pgsql8.3.3
2. 設(shè)置環(huán)境變量,我不想直接添加,而是寫到了一個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ù)器進程的宿主.
數(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,暈。于是,強制執(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ù)器進程的宿主.
數(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ù)器進程的宿主.
數(shù)據(jù)庫簇將帶有 locale C 初始化.
默認的數(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 ... 成功
選擇默認最大聯(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 ... 成功
對內(nèi)建對象設(shè)置權(quán)限 ... 成功
創(chuàng)建信息模式 ... 成功
清理數(shù)據(jù)庫 template1 ... 成功
拷貝 template1 到 template0 ... 成功
copying template1 to postgres ... 成功
警告: 為本地連接啟動了 "trust" 認證.
你可以通過編輯 pg_hba.conf 更改或你下
次運行 initdb 時使用 -A 選項.
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ù)庫慢的問題,本文給大家介紹的非常詳細,對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2021-03-03數(shù)據(jù)庫中的左連接(left join)和右連接(right join)區(qū)別
關(guān)于左連接和右連接總結(jié)性的一句話,左連接 where只影向右表,右連接where只影響左表2012-06-06站內(nèi)群發(fā)消息三種不同用戶量的數(shù)據(jù)庫設(shè)計
很多SNS網(wǎng)站和一部分CMS網(wǎng)站都廣泛地應(yīng)用了站內(nèi)信這一模塊,這個看似簡單的東西其實背后隱藏著很多需要設(shè)計師重視的設(shè)計細節(jié),要做好這個“郵遞員”是很不容易的,本文講述站內(nèi)群發(fā)消息三種不同用戶量的數(shù)據(jù)庫設(shè)計,逐漸設(shè)計一個百萬級用戶量的站內(nèi)信群發(fā)數(shù)據(jù)庫2023-12-12關(guān)于若干數(shù)據(jù)庫數(shù)據(jù)插入性能的對比分析
前幾天,苦惱于到底使用哪一種本地數(shù)據(jù)庫來存儲部分數(shù)據(jù),于是決定做一個數(shù)據(jù)插入測試進行求證2011-10-10