Database ( DB )/Database

How to Fix “An old version of the database format was found” While Starting PostgreSQL

노루아부지 2019. 8. 5. 16:46

출처 : http://www.ehowstuff.com/how-to-fix-an-old-version-of-the-database-format-was-found-while-starting-postgresql/

 

아래와 같은 문제가 발생하면

[root@server ~]# service postgresql start An old version of the database format was found. You need to upgrade the data format before using PostgreSQL. See /usr/share/doc/postgresql-8.4.1/README.rpm-dist for more information.

initdb를 다시 하면 된다.

 

먼저 pgsql/data 안의 파일을 모두 삭제 한 후,

 

[root@server ~]# cd /var/lib/pgsql/data [root@server data]# ls base pg_clog pg_ident.conf pg_multixact pg_tblspc PG_VERSION postgresql.conf global pg_hba.conf pg_log pg_subtrans pg_twophase pg_xlog postmaster.opts [root@server data]# rm -rf *

initdb를 다시 한다.

[root@server data]# service postgresql initdb Initializing database: [ OK ]

728x90

'Database ( DB ) > Database' 카테고리의 다른 글

postgresql 외부 접속  (0) 2019.08.05
postgresql vaccum  (0) 2019.08.05
mysql drop table, create table (with auto_increment)  (0) 2019.08.04
mysql unix time  (0) 2019.08.04
postgresql에서 백업받아서 mysql에 insert  (0) 2019.08.04
loading