Contents

System/OS
2013.04.25 12:58

[mysql] mysql user 생성시 ERROR 1364

조회 수 29391 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
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


?

  1. [linux] 랜카드가 2개 일 때 네트워크 설정

    Date2003.04.23 CategorySystem/OS Byhooni Views31114
    Read More
  2. [ios] iCloud관련 저장 디렉토리

    Date2013.04.23 CategoryDevelop Byhooni Views31047
    Read More
  3. 맥북에서 MAC/윈도우 멀티부팅시 시간 설정

    Date2013.04.23 CategorySystem/OS Byhooni Views30918
    Read More
  4. [mac] OSX(맥) 단축키 설명 ㅎㅎ

    Date2013.04.23 CategorySystem/OS Byhooni Views30796
    Read More
  5. [ios] Objective-C 문자열 잘라서 배열(NSArray)에 넣기

    Date2013.04.23 CategoryDevelop Byhooni Views30451
    Read More
  6. [ios] NSMutableString 문자열 패턴 교환

    Date2013.04.23 CategoryDevelop Byhooni Views30106
    Read More
  7. [linux] 리눅스 파일시스템과 디렉토리 설명

    Date2013.04.23 CategorySystem/OS Byhooni Views29771
    Read More
  8. [c++] mfc 파일 한줄씩 읽기.. ㅋㅋ

    Date2013.04.23 CategoryDevelop Byhooni Views29518
    Read More
  9. [js] JSON 컨트롤.. 재귀호출로 값 출력하기

    Date2013.04.23 CategoryDevelop Byhooni Views29487
    Read More
  10. [doc] 테크니컬 레포트 (BHO 취약점을 이용한 공격)

    Date2013.04.23 CategoryDevelop Byhooni Views29464
    Read More
  11. [mysql] mysql user 생성시 ERROR 1364

    Date2013.04.25 CategorySystem/OS Byhooni Views29391
    Read More
  12. [android] 단일 Thread 환경의 안드로이드에서 Handler를 사용

    Date2013.04.23 CategoryDevelop Byhooni Views29250
    Read More
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 ... 99 Next
/ 99