https://blusky10.tistory.com/362
* mysql docker 백업
docker exec -i -t mysql_test bash
mysqldump --routines --trigger -uroot -p insight > insight.sql
docker cp mysql_test:/insight.sql /Users/admin/workspace/mysql_local/
* 복원
mysql -uroot -p [데이터베이스명] < insight.sql
https://purumae.tistory.com/211
https://interconnection.tistory.com/95
https://12bme.tistory.com/149?category=682920
* 파티셔닝 ( partitioning )
alter table TBL_SA_DATA PARTITION by range (TO_DAYS(REG_DT)) (
PARTITION p20190825 values less than (TO_DAYS('2019-08-25')),
PARTITION p20190826 values less than (TO_DAYS('2019-08-26')),
PARTITION p20190827 values less than (TO_DAYS('2019-08-27')),
PARTITION p20190828 values less than (TO_DAYS('2019-08-28')),
PARTITION p20190829 values less than (TO_DAYS('2019-08-29')),
PARTITION p20190830 values less than (TO_DAYS('2019-08-30')),
PARTITION p20190831 values less than (TO_DAYS('2019-08-31')),
PARTITION p20190901 values less than (TO_DAYS('2019-09-01')),
PARTITION p20190902 values less than (TO_DAYS('2019-09-02')),
PARTITION p3 VALUES LESS THAN MAXVALUE
);
'BigData' 카테고리의 다른 글
[UTF-8] 크롬에서 인코딩 깨질 때 (0) | 2019.06.07 |
---|---|
Flutter (0) | 2019.05.31 |
Docker 운용 (0) | 2019.05.29 |
Kafka 와 Druid 연동 (0) | 2019.05.27 |
GitKraken 사용법 (0) | 2019.05.17 |