System/OS
2013.04.25 12:58

[mysql] mysql user 생성시 ERROR 1364

Views 28504 Votes 0 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
MySQL에서 insert 구문을 통해 user 계정 생성 시 다음과 같은 오류가 생기는 경우.
ERROR 1364 (HY000): Field 'ssl_cipher' doesn't have a default value

Mysql 버전이 높아지면서 보안관련하여 필수항목으로 추가된 컬럼이 누락됐다는 오류이다.
User 생성시 Host, User ,Password, ssl_cipher, x509_issuer, x509_subject 를 입력 해 주어야 한다.
ssl_cipher, x509_issuer, x509_subject 값은 '' 빈값을 입력하면 된다.
mysql> insert into user (Host, User, Password, ssl_cipher, x509_issuer, x509_subject )
-> values('localhost','사용자명',password('비밀번호'),'','','');


MySQL 특정 버전에서 이런 오류가 생기는 경우 
ERROR 1364 (HY000): Field 'authentication_string' doesn't have a default value

MySQL 5.5 버전에서 user 생성시 authentication_string 필드를 추가해야 한다.
특별한 값이 지정되어 있지 않으면 빈 값('')으로 주면 된다.
insert into user (Host, User, Password, ssl_cipher, x509_issuer, x509_subject, authentication_string)
-> values('localhost','사용자명', password('비밀번호'),'','','','');

그리고 Password 필드가 없고 authentication_string 필드가 있을 경우,
authentication_string 필드가 Password 필드를 대체하도록 작성하면 된다.
insert into user (Host, User, authentication_string, ssl_cipher, x509_issuer, x509_subject)
-> values('localhost','사용자명', password('비밀번호'),'','','');



[출처] http://blog.naver.com/taiji567?Redirect=Log&logNo=122081014

?

List of Articles
No. Category Subject Author Date Views
138 System/OS [linux] 스케쥴링 순서(nice) 변경하기 hooni 2003.04.23 12536
137 System/OS [linux] 기존 환경설정 저장하면서 커널 컴파일.. hooni 2003.04.23 13458
136 System/OS [linux] Proftpd 설치 가이드 hooni 2003.04.23 13021
135 System/OS [sql] 내 방명록 답글 찾는 쿼리문.. (JOIN 구문) hooni 2003.04.23 12845
134 System/OS [sql] alter table 쿼리 예제 hooni 2003.04.23 12459
133 System/OS [dos] 노트북 백업 스크립트 xcopy 명령 예제 hooni 2003.04.23 40805
132 System/OS [linux] 터미널에서 문자 깨질 때 설정 ㅋㅋ hooni 2003.04.23 13914
131 System/OS [linux] root도 삭제하지 못하는 파일 속성 hooni 2003.04.23 12412
130 System/OS [linux] man 명령어 뽀개기.. hooni 2003.04.23 8723
129 System/OS [web] 웹서비스 취약점 자료.. (논문첨부) file hooni 2003.04.23 17940
128 System/OS [linux] 꿀통(honeyd) 설치하기.. 메뉴얼 과정 6 file hooni 2006.04.23 20219
127 System/OS [linux] 데비안(debian.org) 리눅스 명령어 예제 hooni 2006.04.23 10422
126 System/OS [mysql] 시간 관련 SQL구문.. hooni 2013.04.23 10773
125 System/OS [router] 시스코 라우터 명령어 모드.. hooni 2013.04.23 12944
124 System/OS [router] 라우팅 프로토콜 BGP (간단한 세팅) hooni 2013.04.23 10949
123 System/OS 네트워크별 MTU(최대 전송 단위) hooni 2013.04.23 17641
Board Pagination Prev 1 3 4 5 6 7 ... 13 Next
/ 13