설치먼저 postgresql 패키지의 설치 버전을 확인한다, $ dpkg -l | grep postgresql 설치버전에 맞는 패키지를 골라 설치한다.$ sudo apt-get install postgresql-9.4-postgis-2.2 템플릿 DB 생성설치가 완료되면 postgres 우분투 계정으로 로그인한 후 psql을 실행한다.$ sudo -i -u postgres $ psqlpsql (9.4.6)Type "help" for help. template_postgis_22 이름으로 템플릿으로 사용할 데이터베이스를 생성한다. 이 때 데이터베이스의 public 스키마의 Function, Table은 빈 상태로 생성된다. postgres=# CREATE DATABASE template_postgis_22..
설치하기 우분투 소프트웨어 센터에 PostgreSQL이 포함되어 있어 apt-get으로 간단히 설치할 수 있다.$ sudo apt-get update$ sudo apt-cache search postgresql$ sudo apt-get install postgresql postgresql-contrib 하지만 우분투 버전에 따라 PostgreSQL 포함 버전이 다르다. 만약에 우분투 14.04에서 PostgreSQL 9.4 또는 다른 버전을 설치하고자 하면 리포지토리를 추가해야 한다.우분투 버전에 따른 이름은 아래와 같다.12.04 (Precise - precise)14.04 (Trusty - trusty)15.10 (Wily-Werewolf - wily)$ lsb_release -i -r -sUbunt..
org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled. Caused by: org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled. 트랜젝션 작업이 필요한 경우 오토커밋이 설정되어 있지 않을 경우 예외를 발생하게 된다. AutoCommit 활성화 한다.set AUTOCOMMIT on;
- Total
- Today
- Yesterday
- 손지우
- OSX
- epsg
- 14.04
- Postgis
- TransactionRequiredException
- ubuntu
- psqlexception
- ds_store
- tomcat
- postgres
- Geoserver
- spring-data-jpa
- update-alternatives
- NestedServletException
- PGSimpleDataSource
- 13억분의1의남자
- openjdk
- ppa:webupd8team
- JPA
- geotools
- known_hosts
- exception
- React.js
- React
- PostgreSQL
- 첫사랑의 강
- 야마송
- InvalidDataAccessApiUsageException
- java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |