이번 wannacry 웜 사태로 인해서 집에 NAS를 최소 SMB2 / 최대 SMB3로

설정을 했는데 집에와서 openELEC/rpi 로 재생하려고 하니

connection timeout

어라?!


혹시나 해서 SMB1 / SMB3로 설정해서 해보니까 문제없이 접속이 되네

cifs로 mount 하다 보니 SMB1을 막아 버리면 접속이 불가능 한 듯?


sraue commented on 11 Mar 2016

closing for now, will be updated when samba 4 support is in kodi

[링크 : https://github.com/OpenELEC/OpenELEC.tv/issues/4174]

'프로그램 사용 > kodi(xbmc)' 카테고리의 다른 글

openELEC HDMI CEC  (0) 2018.02.19
openELEC 8.0 관련  (0) 2017.05.16
kodi remote  (0) 2015.04.07
xbmc on winXP / IrDA 실패  (0) 2015.04.01
ubuntu + xbmc + ion(nvidia)  (0) 2015.03.22
Posted by 구차니


min protocol = SMB2

max protocol = SMB3

[링크 : https://askubuntu.com/questions/546743/how-to-force-smb2-protocol-in-samba]

Posted by 구차니

mysql client로 콘솔에서 접속해서 보니..

걍.. table로 나온다.


mysql> show tables;

+-------------------+

| Tables_in_archlog |

+-------------------+

| account_bank      |

| account_periodic  |

| account_withdraw  |

| arch_article      |

| arch_blobs        |

| arch_refer        |

| arch_rel          |

| arch_reply        |

| arch_user         |

| org_detail        |

| org_rel           |

| organization      |

| people_detail     |

| people_rel        |

+-------------------+

14 rows in set (0.00 sec) 


mysql> desc organization;

+---------------+-----------+------+-----+---------+-------+

| Field         | Type      | Null | Key | Default | Extra |

+---------------+-----------+------+-----+---------+-------+

| idx           | int(11)   | NO   |     | 0       |       |

| name_kr       | char(50)  | YES  |     | NULL    |       |

| name_en       | char(30)  | YES  |     | NULL    |       |

| address       | char(200) | YES  |     | NULL    |       |

| call_1        | char(30)  | YES  |     | NULL    |       |

| fax           | char(30)  | YES  |     | NULL    |       |

| web           | char(50)  | YES  |     | NULL    |       |

| certification | char(20)  | YES  |     | NULL    |       |

| time_create   | datetime  | YES  |     | NULL    |       |

+---------------+-----------+------+-----+---------+-------+

9 rows in set (0.01 sec)


그나저나 저 \G의 차이가 크게 나오네..

mysql> show create view organization\G

얘는 걍.. +--- 이런거 도배 됨

mysql> show create view organization; 

[링크 : https://dev.mysql.com/doc/refman/5.7/en/show-create-view.html]


\g는 vertical output 인가?

--auto-vertical-output

Cause result sets to be displayed vertically if they are too wide for the current window, and using normal tabular format otherwise. (This applies to statements terminated by ; or \G.) 

[링크 : https://dev.mysql.com/doc/refman/5.7/en/mysql-command-options.html]



+

full 하나 넣어주니 깔끔하게 구분이 되는군!

mysql> show full tables;

+-------------------+------------+

| Tables_in_archlog | Table_type |

+-------------------+------------+

| account_bank      | BASE TABLE |

| account_periodic  | BASE TABLE |

| account_withdraw  | BASE TABLE |

| arch_article      | BASE TABLE |

| arch_blobs        | BASE TABLE |

| arch_refer        | BASE TABLE |

| arch_rel          | BASE TABLE |

| arch_reply        | BASE TABLE |

| arch_user         | BASE TABLE |

| org_detail        | BASE TABLE |

| org_rel           | BASE TABLE |

| organization      | VIEW       |

| people_detail     | BASE TABLE |

| people_rel        | BASE TABLE |

+-------------------+------------+

14 rows in set (0.01 sec) 

[링크 : https://dev.mysql.com/doc/refman/5.7/en/show-tables.html]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

Mariadb root access denied  (0) 2018.04.19
mysql sql문 변수 사용  (0) 2017.05.20
db varchar 와 char  (0) 2017.05.09
db에 mac / ip 저장하기(자료형)  (0) 2017.05.09
mysql innodb compress  (0) 2017.04.12
Posted by 구차니

char은 고정

varchar는 가변


다만, char의 경우 길이보다 짧게 입력시 공백으로 처리되어

equals로 비교시 같지 않다고 나오기에 trim()을 해주어야 한다는데 어쩌구 저쩌구


결론은.. 걍 유지보수 편하게 varchar로 대동단결? 이라는 건데

음.. varchar로 구성된 테이블 하나 두고 하나만 파편화 시키는 것도 방법이 되려나?


[링크 : https://okky.kr/article/217655]

[링크 : https://okky.kr/article/256528]

[링크 : http://database.sarang.net/?inc=read&aid=16220&criteria=mysql...page=16]

[링크 : http://dreamchallenger.blogspot.com/2011/07/char-varchar.html]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mysql sql문 변수 사용  (0) 2017.05.20
mysql view 출력 그리고 내용확인  (0) 2017.05.09
db에 mac / ip 저장하기(자료형)  (0) 2017.05.09
mysql innodb compress  (0) 2017.04.12
mysql view  (0) 2017.03.14
Posted by 구차니

MAC은 대개 48bit(8x6) 인데 일부에서는(인피니밴드) 8byte까지 늘어나는 듯

그리고 ip는 IPv4 기준 32bit 니까 int로도 충분은 한데...


쿼리 문에서는 HEX로 변환해주고

[링크 : https://dev.mysql.com/doc/refman/5.7/en/hexadecimal-literals.html]


php에서는 base_convert()를 이용해서 값을 변환해서 비교하는 듯?

[링크 : http://php.net/manual/en/function.base-convert.php]



[링크 : http://stackoverflow.com/questions/4514547/mysql-best-way-to-store-mac-addresses]

[링크 : http://www.onurguzel.com/storing-mac-address-in-a-mysql-database/]

[링크 : http://bryan.wiki/34]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

mysql view 출력 그리고 내용확인  (0) 2017.05.09
db varchar 와 char  (0) 2017.05.09
mysql innodb compress  (0) 2017.04.12
mysql view  (0) 2017.03.14
db designer  (0) 2017.03.14
Posted by 구차니

후배를 갈아먹자 -_-


[링크 : https://git-scm.com/book/en/v2]

[링크 : https://git-scm.com/book/ko/v2]


git fetch(서버에서 받아오기)

git merge(병합)

>> git pull


git checkout (브랜치 선택)


git commit 로컬 저장소 저장

git push 원격 저장소 저장


git clone


git init (로컬 저장소 생성)

git remote add repo (로컬 저장소와 원격저장소 연결)

git pull (원격 저장소의 정보를 내려받음)

>> git clone repo (로컬 저장소와 원격저장소 동일) 

[링크 : https://www.slideshare.net/einsub/svn-git-17386752]

'프로그램 사용 > Version Control' 카테고리의 다른 글

tortoiseSVN 엑셀 비교  (0) 2017.09.16
sorucetree / git client  (0) 2017.07.03
git-svn 관련글  (0) 2017.04.25
svn list 예제  (0) 2017.02.03
svn hook encv  (0) 2016.12.30
Posted by 구차니

dcommit이라는걸 이제야 발견해서 검색..

음... 나중에 한번 써먹어볼까?


$ git svn dcommit

[링크 : http://www.allofsoftware.net/2011/08/blog-post.html]

[링크 : https://git-scm.com/book/ko/v1/Git으로-이전하기-Git과-Subversion]


2011/12/23 - [프로그램 사용/CVS & SVN & GIT & Mercurial] - git-svn

'프로그램 사용 > Version Control' 카테고리의 다른 글

sorucetree / git client  (0) 2017.07.03
git 공부..  (2) 2017.04.25
svn list 예제  (0) 2017.02.03
svn hook encv  (0) 2016.12.30
svn commit email - python / synology  (0) 2016.12.30
Posted by 구차니

만약 virtualboxㅊ에서 가상머신을 구동시키는데

권한이 없다거나

E_FAIL이 뜨거나

아무튼 갑자기 실행안되는 문제가 발생하면


Fasoo를 의심....

이놈들 nProtect보다 더 나쁜놈들 이긴한데 이렇게 영향을 미치냐?


[링크 : http://postmebi.tistory.com/3]

Posted by 구차니

생성하니 이렇게 뷰라고 따로 생기는데

보는건

select * from organization;

으로 그냥 테이블 보는 느낌으로 하게 된다.


일단은.. join을 써서 만들었는데, idx 값이 양쪽에서 다 와서 합쳐지다 보니

그런 중복 항목에 대해서 이름을 바꾸어 주거나, 제외해주어야지 뷰가 생성된다.



[링크 : https://dev.mysql.com/doc/refman/5.7/en/create-view.html]

Posted by 구차니

wiki 식으로 리비전을 계속 올리면서 저장을 하게 되면...

고민을 해보니 대용량의 경우 엄청나게 용량을 쳐묵쳐묵 하게 되는데

(wiki 페이지 하나가 400kb 넘어가는데 그걸 하루 한번 1년 한다고 하면..)

내용 자체를 compress 해서 넣고 decompress 해서 사용하면 조금 느려도 괜찮으려나 싶었지만

sql 문을 통해 검색이 안될거 같아서 포기..


그러다가 찾은게.. db 자체를 압축하는 건데

라즈베리 버전에서는 활성화가 안되어있는지 안뜬다.

COMPACT랑 REDUNDANT만 뜨는 상태..


[링크 : http://stackoverflow.com/questions/8228950/compressing-text-before-storing-it-in-the-database]


[링크 : https://dev.mysql.com/doc/refman/5.6/en/innodb-row-format-dynamic.html]

[링크 : https://dev.mysql.com/doc/refman/5.6/en/innodb-row-format-antelope.html]


+

phpmyadmin 에서 sql을 통해 실행해도 나온다.



SET GLOBAL innodb_file_per_table=1;

SET GLOBAL innodb_file_format=Barracuda; 

[링크 : https://dev.mysql.com/doc/refman/5.6/en/innodb-compression-usage.html]


기본값은 antelope 이고 barracuda는 신규 포맷


[링크 : https://dev.mysql.com/doc/refman/5.6/en/innodb-file-format.html]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

db varchar 와 char  (0) 2017.05.09
db에 mac / ip 저장하기(자료형)  (0) 2017.05.09
mysql view  (0) 2017.03.14
db designer  (0) 2017.03.14
데이터베이스 구조 버전관리  (0) 2017.02.13
Posted by 구차니