본문 바로가기

Max length of mysql TEXT field type TINYBLOB, TINYTEXT L + 1 bytes, where L < 2^8 (255 Bytes)BLOB, TEXT L + 2 bytes, where L < 2^16 (64 Kibibytes)MEDIUMBLOB, MEDIUMTEXT L + 3 bytes, where L < 2^24 (16 Mebibytes)LONGBLOB, LONGTEXT L + 4 bytes, where L < 2^32 (4 Gibibytes) 더보기
특정 파일 검색해서 해당 파일내에 특정 문구 추가하기 기본적으로 파일내에 특정 문구를 추가하려면 아래 명령을 사용하면된다. ]$ sed -i '[넣어줄 줄위치]s/^/[추가해줄 문장]\n/' [추가하려는 파일]]$ sed -i '2s/^/SET autocommit=0;\n\n/' ./test.sql \; # 여러 개를 추가하려면(5개가 추가됨)]$ sed -i '1,5s/^/-- test line\n\n/' ./test.sql \; 덤프뜬 데이터 양이 많아서 split으로 나눠서 일괄로 등록해줄 필요가 있었음.그래서 split으로 나눈후 해당 내용에 SET autocommit=0을 모든 파일에 추가해줘야함. ]$ split -l 500 all_log.sql ./log_split/log-]$ find ./ -name 'log-*' -exec sed -i '1.. 더보기
DB dump with single transaction mysqldump [DB Info] [dump option] [dump target] > /path/to/dump/file.sql If you want to dump with single transaction..just add one option in [dump option] That is "--single-transaction" options.It make the dump process to slow, but it did not lock the table.So you can insert, update...etc..during the db dump process. 더보기
부동산 가격 변동 추이 언젠가 기사에서 부동산 차트는 항상 지수로만 보여진다고 한것을 본적이 있다.물론 이 기사의 주제는 '부동산에 거품이 끼어있으며 부동산 불패가 지속되지 않을것이다' 였다.그 주장을 뒷바침 하기 위해서 제시한게 물가 상승률 대비 부동산 가격 추이였다.찾아보아도 잘 나오지 않아서 엑셀로 만들어 보았다. 위 차트는 2006년 1월의 부동산 지수를 100으로 잡아서 아무런 가공없이단순히 지수의 변동만을 나타내는 그래프이다.흔히들 말하는 부동산 불패를 잘 확인할 수 있는 부분이다. 위 차트는 부동산 지수에 물가 지수를 추가하였다.단순 지수 차트보다는 다이나믹한 움직임을 보여주고 있다.2011년 완만하게 떨어진것으로 보였던 가격이 실제로는 큰폭으로 하락한 것을 확인할 수 있다.2006년 1월부터 최종 서울 기준으로 .. 더보기
Install NVIDIA Graphic driver on fedora linux At first check your driver and graphic card. ]$ nvidia-installer -v | grep version]$ uname -a]$ lspci |grep -E "VGA|3D" Go to https://www.nvidia.com/Download/Find.aspx?lang=en-us and Download DriverGo Download Path and add executable permission on the file]$ chmod +x ./NVIDIA-Linux-*.run And then update your packages and install you needed]$ su -]$ dnf update]$ reboot]$ dnf install kernel-devel .. 더보기