Contents

System/OS
2013.04.25 12:58

[mysql] mysql user 생성시 ERROR 1364

Views 28504 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
909 System/OS [router] 시스코 라우터 명령어 모드.. hooni 2013.04.23 12944
908 Algorithm [security] 블럭 암호에 대해서.. hooni 2013.04.23 17118
907 System/OS [router] 라우팅 프로토콜 BGP (간단한 세팅) hooni 2013.04.23 10949
906 System/OS 네트워크별 MTU(최대 전송 단위) hooni 2013.04.23 17641
905 System/OS OSI (Open Systems Interconnection) 개방형 시스템간 상호 접속 file hooni 2013.04.23 10785
904 System/OS 라우팅 경로 결정 영향 요소 ㅋㅋ file hooni 2013.04.23 15850
903 System/OS [owasp] 10대 웹어플리케이션 보안 취약 file hooni 2013.04.23 15906
902 Database [mysql] 루트 암호 초기화 hooni 2013.04.23 11044
901 Algorithm Polynomial time 이란? ㅋㅋ hooni 2013.04.23 22679
900 System/OS [linux] /etc/fstab 설정 방법.. ㅋㅋ hooni 2013.04.23 12081
899 Algorithm 암호 알고리즘 및 프로토콜의 이해.. file hooni 2013.04.23 17208
898 Develop [js] One Time Pad key generatorㅡ.,ㅡ; file hooni 2013.04.23 6789
Board Pagination Prev 1 ... 18 19 20 21 22 23 24 25 26 27 ... 98 Next
/ 98