카테고리 없음

psql error >>> ERROR: relation "???" does not exist

maggieH 2022. 8. 4. 12:27

위와 같이 릴레이션이 없다는 오류가 뜰시,

database를 다시 생성하고 grant 명령어에 database 추가

⇒ grant all privileges on database "hps303" to "hps303admin";

참고링크: https://stackoverflow.com/questions/35794693/relation-does-not-exist-when-trying-to-grant-privileges

******추가 : 

해당 데이터베이스 생성후 pgAdmin4에 접속해서 서버 생성하면 생성한 테이블이 빈값으로 생성되어있는데,

nestjs를 한번 돌리면 해당 컬럼+ 빈 배열들이 생성됌 

=> 여기에 실서버 데이터 backup한 내용을 restore하면 됌