PostgreSQL2 PSQLException: ERROR: permission denied for schema public 에러 현상 Spring Boot에서 데이터 초기화 스크립트 data.sql을 만들었는데 오류가 발생했다."Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for schema public" 이유를 찾아보니 PostgreSQL15 부터는 데이터베이스 소유자가 아니면 public 스키마에서 create를 할 수 없게 변경되었다."PostgreSQL 15 also revokes the CREATE permission from all users except a database owner from the public (or default) schema."(https://www.postgresql.org/about/news/postgre.. 2025. 1. 9. postgresql 설치하기 (AWS, Amazon Linux, dnf, yum) AWS의 Amazon Linux 서버에서 dnf 명령어를 이용하여 postgresql 설치하는 방법여기서 사용되는 dnf명령어는 yum으로 대체할 수 있다. 1) 패키지 조회하기dnf list | grep postgre 2) 패키지 설치하기sudo dnf install postgresql16-server 3) 서비스 등록(systemctl) 확인하기systemctl status postgresql sudo cat /usr/lib/systemd/system/postgresql.servicePGDATA 데이터 경로가 서비스 파일에 등록되어 있다. 데이터 경로 변경 시 서비스 파일도 같이 변경해야 한다. 4) systemctl 시작하기 (오류발생함)sudo systemctl statrt postgresql.. 2024. 12. 19. 이전 1 다음