auto_increment 가 2씩 증가하는 것을 발견하여 확인 해보니,auto_increment_increment 설정이 2로 되어있어서 2씩 증가하는 것이였다.아래 처럼 SET 명령어를 통해서 auto_increment_increment를 1로 변경하면 된다. 1234567891011mysql> SHOW VARIABLES LIKE 'auto_inc%';+--------------------------+-------+| Variable_name | Value |+--------------------------+-------+| auto_increment_increment | 2 || auto_increment_offset | 1 |+--------------------------+-------+2 ro..
123456789101112131415161718192021>>> data = {"a": 10,"b": 5,"c": 7,"d": 2,"e": 9,"f": 1}>>> zip(data.values(), data.keys())[(10, 'a'), (7, 'c'), (5, 'b'), (9, 'e'), (2, 'd'), (1, 'f')]>>> min(zip(data.values(), data.keys()))(1, 'f')>>> max(zip(data.values(), data.keys())) (10, 'a')>>> sorted(zip(data.values(), data.keys()), reverse=True)[(10, 'a'), (9, 'e'), (7, 'c'), (5, 'b'), (2, 'd'), (1, 'f'..
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115import osimport gcimport errnoimport socketimport optparsefrom threading import Threadfrom Queue import Queue socket_timeout = 0.1thread_size = 100default_max_po..
- Total
- Today
- Yesterday
- Linux
- 외부링크
- monitoring
- Ansible
- 예제
- command
- check
- Web
- Module
- 번역
- error
- 코드
- httpd
- deview
- Python
- PowerShell
- 명령어
- code
- 이슈처리
- apache
- engineering
- client
- MariaDB
- example
- limits
- configuration
- Windows
- RESTful
- File
- mysql
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |