- Arawn's Dev Blog
- Outsider's Dev Story
- Toby's Epril
- Benelog
- NHN 개발자 블로그
- SK 플래닛 기술 블로그
- OLC CENTER
- 소프트웨어 경영/공학 블로그
- 모바일 컨버전스
- KOSR - Korea Operating System …
- 넥스트리 블로그
- 리버스코어 ReverseCore
- SLiPP
- 개발자를 위하여... (Nextree 임병인 수석)
- "트위터 부트스트랩: 디자이너도 놀라워할 매끈하고 직관…
- Learning English - The English…
- real-english.com
- 'DataScience/Deep Learning' 카테…
- Deep Learning Summer School, M…
- Deep Learning Courses
목록Database (43)
민서네집
오늘 인터넷에서 검색하다가 우연히 MySQL에서 NOW()와 SYSDATE()의 차이를 알게 되었다. [출처] http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function%5Fstr-to-date SYSDATE() returns the time at which it executes. This differs from the behavior for NOW(), which returns a constant time that indicates the time at which the statement began to execute. (Within a stored function or trigger,NOW() returns the time..
나는 Windows 8.1 64bit OS를 사용하고 있고, MySQL 홈페이지에서 32bit installer를 다운로드 받아서 설치했다. 그런데 제어판 > 관리도구 > 서비스 항목에서 MySQL 항목이 없는 것이다. [참고]http://stackoverflow.com/questions/119008/cant-connect-to-mysql-server-on-localhost-10061 이럴 때는 관리자 모드로 명령 프롬프트를 띄우고 나서 MySQL bin 디렉터리 안의 mysqld 를 --install 옵션을 줘서 실행시키면 서비스 항목에 등록된 것을 볼 수 있다. 이제 Tray에 있는 MySQL Notifier 에서도 모니터링이 가능한데, 여기서 ON/OFF를 하면 에러가 나고, 관리도구 안의 서비스에..
mysqld --verbose --help | grep -A 1 'Default options' http://bizadmin.tistory.com/34 sudo vi /etc/mysql/my.cnf [mysqld]lower_case_table_names = 1 그래서 이 옵션을 다시 주석 처리함. 이 옵션은 테이블을 Create 할때 생성되는 테이블 이름이 모두 소문자로 바뀌도록 한다.SQL 문으로 조회할 때는 테이블 이름을 모두 소문자로 바꿔서 실행시킨다.
* Linux 버전: Ubuntu 12.04.5 LTS Server * 우분투 한국 커뮤니티: http://www.ubuntu-kr.org/ * Documentation: https://help.ubuntu.com/ http://jacking.tistory.com/1116 http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.5/libmysqlclient18_5.5.40-0ubuntu0.12.04.1_amd64.deb http://jaesu.tistory.com/entry/ubuntu-mysql-%EC%84%A4%EC%B9%98-%EB%B0%8F-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0 sudo..
-- {USER} 사용자 추가 (로컬에서 접속 시 사용)CREATE USER '{USER}'@'localhost' IDENTIFIED BY '{PASSWORD}'; -- {USER} 사용자 추가 (외부에서 접속 시 사용) CREATE USER '{USER}'@'%' IDENTIFIED BY '{PASSWORD}'; -- ------------------------------------ DATABASE 생성-- ---------------------------------- CREATE SCHEMA `{scheme_name}` DEFAULT CHARACTER SET utf8 ; -- ------------------------------------ DATABASE 삭제-- -------------------..
2.10.4.5 Starting MySQL from the Windows Command Line http://dev.mysql.com/doc/refman/5.0/en/windows-start-command-line.html MySQL zip 파일을 받고, 설치하지 않고, 압축만 풀고, 명령줄에서도 실행시킬 수 있다. mysql-5.6.20-winx64\bin 디렉터리에서 mysqld --console 를 실행한다. 3306포트가 이미 사용되고 있으면 그냥 종료된다. 이렇게 명령행에서 실행시켜도 MySQL Workbench를 실행시키면 지금 돌고 있는 mysqld 서버와 연결된다. D:\WebService(20140818)\mysql-5.6.20-winx64 디렉터리에서 mysqld.bat 파일을 만들고,..
Insert hex values into MySqlstackoverflow.com/questions/3126210/insert-hex-values-into-mysql You can use UNHEX() function to convert a hexstring with hex pairs to binary and HEX() to do the other way round.I.e.INSERT INTO tbl (col) VALUES (UNHEX('4D2AFF'))andSELECT HEX(col) FROM tbl CREATE TABLE IF NOT EXISTS `TEST_TBL` ( `totalCount` VARBINARY(500) , `useCount` VARBINARY(500) ) ENGINE=InnoDB DE..
Cent OS 6.4, MySQL 5.6 version 기본 인코딩 변경하기 MySQL 기본 인코딩 변경하기 http://ra2kstar.tistory.com/97 mysql> show variables like 'c%'; [MySQL 5.5.9] unknown variable default-character-set http://forum.directadmin.com/showthread.php?t=39800 http://dev.mysql.com/doc/refman/5.5/en/server-options.html#option_mysqld_default-character-set /etc/my.cnf 파일의 내용 [mysql] default-character-set = utf8 [mysqld] lower_ca..
NULL에 관해서 Oracle에서는 다른 DBMS와 다른 점이 있다. 대부분의 프로그래밍 언어에서와는 달리, SQL에서는 NULL을 0이나 false 또는 빈 문자열과 다른 특별한 값으로 취급한다. 표준 SQL과 대부분의 데이터베이스 제품에서는 그렇다. 그러나 Oracle과 Sybase에서는 NULL이 길이가 0인 문자열과 동일하다.- (옮긴이 주석) NULL을 문자열 데이터로 취급할 때 그렇다는 뜻이다. 숫자 타입이나 날짜 타입에서는 다른 DBMS와 마찬가지다. NULL은 0과 같지 않다. 알지 못하는 값에 10을 더한다 해도 여전히 알지 못하는 값이다.NULL은 길이가 0인 문자열과도 같지 않다. 표준 SQL에서는 어떤 문자열도 NULL과 연결하면 NULL이 된다. (Oracle과 Sybase는 예외..
How to Install MySQL 5.6 on CentOS 6.3/RedHat EL6/Fedorahttp://opensourcedbms.com/dbms/installing-mysql-5-6-on-cent-os-6-3-redhat-el6-fedora/ 위 URL 에 설명이 아주 잘 나와 있다. 리눅스의 방화벽에 MySQL 포트를 추가하는 법도 있다. VirtualBox 에 CentOS를 설치할때 네트워크 설치를 해야 네트워크 설정을 자동으로 잡아준다고 해서 "네트워크 설치"로 설치했다. 네트워크 설정이 되야 wget 명령으로 rpm 패키지를 네트워크에서 가져올 때나 yum 명령을 쓸 때도 편하다. VirtualBox 버전 4.3.2CentOS 버전 - 6.4MySQL 버전 - 5.6 나는 Dual Mo..