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..
* 백업123456789ssh root@백업대상서버 "tar 2>/dev/null -cpf - / \ --exclude=/lost+found \ --exclude=/mnt \ --exclude=/proc \ --exclude=/srv \ --exclude=/sys \ --exclude=/tmp \ --exclude=/boot" \ | cat > 백업대상서버_$(date +%Y-%m-%d).tarcs * 복원1cat 백업대상서버_2017-02-22.tar | ssh user@host "tar xf - -C /"cs
1234567891011Colored by Color Scriptercs
123456789101112131415Colored by Color Scriptercs
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374Function RegExpTest(Pattern, Str) Dim RegExp SET RegExp = New RegExp RegExp.Pattern = Pattern RegExp.IgnoreCase = True RegExpTest = RegExp.Test(Str) SET RegExp = NothingEnd Function Function in_array(element, arr) in_array = False For i=0 To Ubound(arr) If Tr..
- Total
- Today
- Yesterday
- File
- monitoring
- deview
- 코드
- code
- httpd
- configuration
- command
- 외부링크
- check
- Module
- 예제
- example
- Windows
- client
- Web
- RESTful
- MariaDB
- PowerShell
- apache
- 이슈처리
- Python
- 번역
- limits
- 명령어
- Ansible
- mysql
- engineering
- Linux
- error
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |