Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- spark
- 도커
- kafka
- 카프카
- airflow
- Java
- CDC
- polars
- proerty
- 파이썬
- dbt_project
- 윈도우
- ksql
- UI for kafka
- spring boot
- freshness
- Materializations
- Python
- docker
- KubernetesPodOperator
- 동적 차트
- DBT
- k9s
- bar cahrt
- numpartitions
- query history
- 크롤링
- 쿠버네티스
- 모바일
- mysql
Archives
- Today
- Total
데이터 엔지니어 이것저것
Query history 보기 본문
728x90
기본적으로 query history 는 남지 않는다
db 접근
로그인
mysql -u mysqluser -p
로그 활성화 상태 확인
show variables where Variable_name in ('version', 'log', 'general_log');
로그 활성화
set global general_log = 1;
로그 적재할 곳 정하기 ( 나의 경우 FILE로 세팅되어있었음)
SHOW VARIABLES LIKE '%log_output%';
set global log_output = 'TABLE';
set global log_output = 'TABLE,FILE';
이후
select * from mysql.general_log;
728x90
'DB' 카테고리의 다른 글
ACID vs BASE (0) | 2023.02.23 |
---|---|
Index 안타는 경우 (0) | 2021.12.30 |
Index (0) | 2021.12.30 |
몽고디비 (0) | 2021.07.26 |
DataBase 비교 (0) | 2021.07.24 |