Contents

System/OS
2013.04.25 12:58

[mysql] mysql user 생성시 ERROR 1364

조회 수 28504 댓글 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. [perl] 펄 환경 설정해야 할거 ㅋㅋ

    Date2003.04.23 CategorySystem/OS Byhooni Views14992
    Read More
  2. [perl] 영규가 만든 스크립트.. 하하..

    Date2013.04.23 CategorySystem/OS Byhooni Views10597
    Read More
  3. [owasp] 10대 웹어플리케이션 보안 취약

    Date2013.04.23 CategorySystem/OS Byhooni Views15906
    Read More
  4. [mysql] 시간 관련 SQL구문..

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

    Date2013.04.25 CategorySystem/OS Byhooni Views28504
    Read More
  6. [mysql] MySQL server has gone away 에러 대응

    Date2013.05.29 CategorySystem/OS Byhooni Views19224
    Read More
  7. [ms-sql] 프로시져 예제..

    Date2013.04.23 CategorySystem/OS Byhooni Views13406
    Read More
  8. [ms-sql] 서브스트링(substring), 프로시저(SP) 작성 예제

    Date2013.04.23 CategorySystem/OS Byhooni Views41296
    Read More
  9. [mac][추천 무료앱] 구름 입력기 - 국내 맥 사용자를 위한 한글 대안 입력기

    Date2015.01.04 CategorySystem/OS Byhooni Views2145
    Read More
  10. [mac] 패키지 매니저, MacPort

    Date2015.01.03 CategorySystem/OS Byhooni Views967
    Read More
  11. [mac] 컨텍스트(Context) 메뉴 "다음으로 열기" 내용 정리

    Date2013.07.10 CategorySystem/OS Byhooni Views18797
    Read More
  12. [mac] 맥에서 슬립(잠자기) 모드 진입을 막는 방법~

    Date2013.10.10 CategorySystem/OS Byhooni Views30876
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 17 Next
/ 17