| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- postgres
- 하모니카
- 윈도우
- 자바스크립트
- javascript
- 3.0
- 리눅스
- DATABASE
- 설정
- hamonikr
- java
- server
- PostgreSQL
- Windows
- python
- DB
- script
- Atlassian
- 스크립트
- 우분투
- 아틀라시안
- node
- 자바
- 파이썬
- 데이터베이스
- JS
- install
- ubuntu
- 설치
- Linux
- Today
- Total
목록Database (21)
LukeHan 의 잡다한 기술 블로그
MSSQL 서버 데이터를 클론할 필요가 있어 아래와 같이 문서 작성하게 되었음 pip install mssql-scripter원활한 백업을 위해 mssql-scripter 를 설치 한다. # mssql-scripter -S ip_address -U user -P 'password' -d Database --schema-and-data:tables_and_datas > backup_file_pathmssql-scripter -S 192.168.0.123 -U master -P 'password!@#' -d DB --schema-and-data > C:\\local\\backup.sql위와 같이 입력하여 백업을 진행한다. #!/bin/bashDBS=( "database1" "database2"..
DB Table to CSV FileSELECT `field1`, `field2`, `field3` INTO OUTFILE './filename.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' FROM table_name; CSV File to DB TableLOAD DATA INFILE './filename.csv' INTO TABLE table_name FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' (`field1`, `field2`, `field3`); 참고 : https://int-i.github.io/sql/2021-03-14/db-table-csv
Hint: No operator matches the given name and argument types. You might need to add explicit type casts. Postgresql 사용 시 위와 같은 에러가 발생 where 조건 대입 시 문제가 있거나 형변환을 잘못 하는 경우 발생하는 문제라고 함. SELECT * FROM tb_luke WHERE area_id = CAST(#{areaId} AS INTEGER) 위와 같이 CAST 를 사용하여 형변환 후 이상 없는 것을 확인 참고 : https://m.blog.naver.com/deersoul6662/221358136753
OS : Ubuntu 22.04.2 LTS Postgres : 14.8 sudo vi /etc/postgresql/14/main/postgresql.conf postgres 외부 접속 허용을 위해 위와 같이 입력한다 ###### 기존 ###### ... #------------------------------------------------------------------------------ # CONNECTIONS AND AUTHENTICATION #------------------------------------------------------------------------------ # - Connection Settings - listen_addresses = 'localhost' # what..
select table_schema, table_name, pg_relation_size(table_schema||'.'||table_name), pg_size_pretty(pg_relation_size(quote_ident(table_name))), pg_size_pretty(hypertable_size(table_schema||'.'||table_name)) as pg_size_pretty_ts, pg_relation_size(quote_ident(table_name)) from information_schema.tables where table_schema = 'public' order by 3 desc; pg_size_pretty(pg_relation_size(quote_ident(table_na..
개발 환경 구성 중 데이터를 import 하는 경우가 발생하는데, 이 경우 MS SQL 설치 시 Express 버전을 제외한 버전을 설치하기를 권장합니다. Express 버전 사용 시 라이선스 정책으로 인해 한 Database 당 최대 10240Mb 를 지원하여 'PRIMARY' 디스크 공간 부족 문제가 발생합니다. 참고 : https://knowledge.autodesk.com/ko/support/vault-products/troubleshooting/caas/sfdcarticles/sfdcarticles/KOR/Vault-SQL-Server-Express-limit-reached.html MSSQL 2014 : https://www.microsoft.com/ko-kr/download/confirmat..
