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
186 System/OS 컴파일러 수업 자료(교재 : 컴파일러 입문) file hooni 2003.04.23 21966
185 System/OS [perl] 펄 환경 설정해야 할거 ㅋㅋ hooni 2003.04.23 14992
184 System/OS [linux] vi 편집기 간단한 명령과 환경설정 hooni 2003.04.23 11359
183 System/OS [linux] 리눅스 활용 팁^^ hooni 2003.04.23 14629
182 System/OS [linux] 기본 명령어 (내공쌓기) hooni 2003.04.23 14333
181 System/OS [linux] 간단한 vi편집기 사용 명령 hooni 2003.04.23 13456
180 System/OS [linux] 프로그램 설치방법 (내공쌓기) hooni 2003.04.23 13433
179 System/OS [linux] 계정관리하기(내공쌓기) hooni 2003.04.23 13157
178 System/OS [linux] 기본적인 설정하기(내공쌓기) hooni 2003.04.23 13993
177 System/OS [linux] 새 하드디스크 추가하기..(내공쌓기) hooni 2003.04.23 13807
176 System/OS [linux] 아파치설치/설정 hooni 2003.04.23 14492
175 System/OS [linux] 아파치설치/설정(CGI부분) hooni 2003.04.23 14568
174 System/OS [linux] 아파치설치/설정 - SSI(Server Side Include) hooni 2003.04.23 13206
173 System/OS [linux] 아파치 설치/설정(proxy) hooni 2003.04.23 12965
172 System/OS [linux] 아파치설치/설정(모니터링) hooni 2003.04.23 14153
171 System/OS [linux] 아파치설치/설정 - 사용인증 hooni 2003.04.23 15084
Board Pagination Prev 1 2 3 4 5 ... 13 Next
/ 13