database.sarang.net
UserID
Passwd
Database
DBMS
MySQL
ㆍPostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
PostgreSQL Q&A 4666 게시물 읽기
No. 4666
6.x 덤프받은거 7.x에 올리는데 에러가 납니다.
작성자
박선행
작성일
2003-04-15 10:55
조회수
1,162

6.x에서 한일입니다.

(현제 데몬이 돌구 있습니다.)

 

su postgres

cd

pg_dumpall > db.out

 

==================================================================

7.x에서 한일입니다.

(현제 데몬이 돌구 있습니다.)

 

파일(db.out)을 받았습니다.

su postgres

 

bash-2.05a$cd

bash-2.05a$ psql -e template1 < db.out

You are now connected to database template1.

select datdba into table tmp_pg_shadow from pg_database where datname = 'template1';

SELECT

delete from pg_shadow where usesysid <> tmp_pg_shadow.datdba;

DELETE 2

drop table tmp_pg_shadow;

DROP

copy pg_shadow from stdin;

You are now connected to database template1 as user postgres.

create database goldi with encoding='SQL_ASCII';

ERROR: CREATE DATABASE: database "goldi" already exists

You are now connected to database goldi as user postgres.

You are now connected as new user postgres.

CREATE SEQUENCE "number" start 246 increment 1 maxvalue 2147483647 minvalue 1 cache 1 ;

ERROR: Relation 'number' already exists

SELECT nextval ('number');

nextval

---------

249

(1 row)

 

REVOKE ALL on "number" from PUBLIC;

REVOKE

GRANT INSERT,UPDATE,DELETE,SELECT on "number" to "postgres";

GRANT

GRANT INSERT,UPDATE,DELETE,SELECT on "number" to "www";

GRANT

\connect: FATAL 1: IDENT authentication failed for user "root"

 

bash-2.05a$

 

==================================================================

 

모르는것을 빠른 시간안에 할려고 하니까 참 힘이듭니다. ^^

Q & A 게시판을 참고하다가 글을 올립니다.

[Top]
No.
제목
작성자
작성일
조회
4669PostgreSQL 접속 어떻게 하나요? [1]
김용수
2003-04-17
1411
4668해쉬와 기타 인덱스! [2]
초본데염?
2003-04-17
1224
4667함수결과에 인덱스 걸기. [2]
초본데염?
2003-04-15
1314
46666.x 덤프받은거 7.x에 올리는데 에러가 납니다.
박선행
2003-04-15
1162
4665postgresql7.2.1_win32 설치와 사용 [6]
대훈
2003-04-15
1506
4664트리거와 룰의 사용에 대해.. [2]
초본데염?
2003-04-14
1416
4662데몬이 32개만 되면 이상현상이.... --;
한성호
2003-04-14
1266
4663┕>Re: 데몬이 32개만 되면 이상현상이.... --;
엠브리오
2003-04-14 15:14:12
1247
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.020초, 이곳 서비스는
	PostgreSQL v16.4로 자료를 관리합니다