DataBase

🎯 요구사항 Fastify + Swagger (OPEN API 3.0.3) 를 쓴다면 JSON Schema 를 정의하는 일이 익숙할 것이다. 허나, 프로젝트 초반일수록 DB 스키마는 물론 API 가 변경되는 일이 잦아 JSON Schema 변경도 잦아진다. 개발과 문서화 모두를 맡은 개발자 입장에선 여간 귀찮은 일이 아닐 수 없다. ORM없이 DB 스키마를 변경할 때마다 연결된 DB로부터 자동으로 JSON Schema 를 받아올 순 없을까? 구원 투수 GitHub - SpringTree/pg-tables-to-jsonschema: A command-line utility and module to turn postgres tables into JSON Schemas A command-line utility..
MySQL License(==Subscription) by Oracle 연간 Enterprise 이용료가 150만원이나 하는 MySQL.. Oracle에 묶인게 맘에 들지 않았던 MySQL 개발자들이 뛰쳐나와 개발한 것이 MariaDB이다. MySQL과 다르게 오픈소스로 Free Software (무료)다. 오늘은 같은듯 다른듯한 이 두 DB의 주요 차이점을 정리한다. MySQL MariaDB JSON type support not support but alias for JSON which is actually a LONGTEXT Default Authentication caching_sha2_password (using SHA-256) as default (after 8.0 version) only u..
· DataBase
Oracle Database 설치 & 환경 설정 www.oracle.com/kr/database/technologies/oracle-database-software-downloads.html#19c Oracle Client Oracle Default Port 1521 Client 필요한 환경 설정 파일 tnsname.ora SID, SERVICE_ID, IP, PORT 등 네트워크 접속 설정 정보를 담는 파일 sqlnet.ora 네트워크 접속시 인증 방식, 설정 파일(ex.tnsname.ora) 을 지정하는 파일 두 파일 경로는 다음과 같다. (ORACLE_HOME == 오라클 파일 설치경로) %ORACLE_HOME%/network/admin 원격 접속 구문 sqlplus username/password..
Dump 1. MySQL Workbench 사용 2. mysqldump 명령어 사용 mysqldump -h 호스트주소 -u 유저명 -p DB명 (--single-transaction) (--column-statistics=0) > Dump파일저장경로 다음 2개의 파라미터는 옵션이다. (필수가 아니다.) --single-transaction This option sets the transaction isolation mode to REPEATABLE READ and sends a START TRANSACTION SQL statement to the server before dumping data. 정확한 해석은 나중으로 일단 미룬다.. --column-statistics=0 Write ANALYZE TAB..
문제상황 기존 MySQL 파일을 모두 삭제하고 installer 를 받아 재설치하려는데 [mysql installer] 한글로는 "이 제품의 구성 데이터가 손상되었습니다. 고객 지원 담당자에게 문의하십시오." 혹은 새 버전을 설치하려하면 "commnuity the older version of mysql installer" 에러 메시지 출력. 원인 보통 MySQL을 삭제하는 과정은 다음과 같다. 1. Program Files\MySQL 폴더 삭제 2. 제어판에서 MySQL 관련 프로그램을 모두 삭제 3. 레지스트리 값에서 'mysql'을 검색하여 레지스트리를 모두 지운다. 여기서 '3번'이 문제였다. 해결 방법 1. 설치파일을 실행할 때 로그파일에 에러 내역을 담는다. 2. 로그파일로 부터 원인을 찾는다..
1. 문제 상황 2. 문제 원인 3. 해결 방법 [구문] sudo chown mognodb /tmp/mongodb-27017.sock .sock 파일 소유자를 mongodb에게 sudo chgrp mognodb /tmp/mongodb-27017.sock .sock 파일 권한그룹또한 mongodb에게! 해결! 4. Reference https://stackoverflow.com/questions/37565758/mongodb-not-working-on-ubuntu-16-04/42736439
M_Falcon
'DataBase' 카테고리의 글 목록 (4 Page)