System/OS
2013.04.25 12:58

[mysql] mysql user 생성시 ERROR 1364

조회 수 29391 추천 수 0 댓글 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. [js] 자바스크립트의 클로저 (JavaScript's Closure)

    Date2013.05.15 CategoryDevelop Byhooni Views13670
    Read More
  2. 서기의 PHP 동영상 강의(싱싱해)

    Date2013.05.15 CategoryDevelop Byhooni Views31891
    Read More
  3. 영어공부에 도움될만한 사이트 모음

    Date2013.05.14 CategoryEtc Byhooni Views23711
    Read More
  4. Mac OS X - Apache+PHP+MySQL 환경 서버

    Date2013.04.25 CategorySystem/OS Byhooni Views34803
    Read More
  5. [mysql] mysql user 생성시 ERROR 1364

    Date2013.04.25 CategorySystem/OS Byhooni Views29391
    Read More
  6. 맥에서 파일공유 (윈도우,맥)

    Date2013.04.25 CategorySystem/OS Byhooni Views38343
    Read More
  7. [js]모바일 웹에서 orientationchange

    Date2013.04.23 CategoryDevelop Byhooni Views20852
    Read More
  8. [android] keytool을 사용하여 키스토어 생성

    Date2013.04.23 CategoryDevelop Byhooni Views70410
    Read More
  9. [js] 모바일웹에서 이미지 저장하는거 (context menu) 막기

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

    Date2013.04.23 CategoryDevelop Byhooni Views29487
    Read More
  11. [iphone] 파일 업로드 샘플 코드 ㅎㅎ

    Date2013.04.23 CategoryDevelop Byhooni Views11120
    Read More
  12. [node.js] 지금 하고 있는거..

    Date2013.04.23 CategoryDevelop Byhooni Views28122
    Read More
  13. [node.js] nodejs 기본 설치

    Date2013.04.23 CategoryDevelop Byhooni Views28004
    Read More
  14. [iphone] 화면 전환 Portrait & Landscape Mode

    Date2013.04.23 CategoryDevelop Byhooni Views23394
    Read More
  15. [iphone] performSelector:withObject:afterDelay: 에 대한 내용

    Date2013.04.23 CategoryDevelop Byhooni Views68361
    Read More
  16. [ios] 디렉토리 하하하..

    Date2013.04.23 CategoryDevelop Byhooni Views33514
    Read More
Board Pagination Prev 1 ... 26 27 28 29 30 ... 74 Next
/ 74