Contents

System/OS
2013.04.25 12:58

[mysql] mysql user 생성시 ERROR 1364

Views 28595 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


?

  1. [linux] apache, php, jsp 환경설정하기..

    Date2003.04.23 CategorySystem/OS Byhooni Views15299
    Read More
  2. [linux] 특수문자 환경 설정(stty)

    Date2003.04.23 CategorySystem/OS Byhooni Views15340
    Read More
  3. [linux] 종료와 종료코드 확인(환경변수에서)

    Date2003.04.23 CategorySystem/OS Byhooni Views15611
    Read More
  4. [linux] 쉘스크립트 expr

    Date2014.03.11 CategorySystem/OS Byhooni Views15698
    Read More
  5. [router] 설정과 기본 명령어들 모음

    Date2013.04.23 CategorySystem/OS Byhooni Views15744
    Read More
  6. 라우팅 경로 결정 영향 요소 ㅋㅋ

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

    Date2013.04.23 CategorySystem/OS Byhooni Views15984
    Read More
  8. [windows] 원격 데스크탑(터미널 서비스) 포트 변경

    Date2013.04.23 CategorySystem/OS Byhooni Views16351
    Read More
  9. [linux] 패킷 스니퍼링

    Date2003.04.23 CategorySystem/OS Byhooni Views16372
    Read More
  10. [linux] 콘솔/Xwindow 에서 PC스피커 소리 없애기

    Date2003.04.23 CategorySystem/OS Byhooni Views16412
    Read More
  11. [linux] 메타(기호)문자의 의미와 사용

    Date2003.04.23 CategorySystem/OS Byhooni Views16458
    Read More
  12. [linux] 네트워크 커널 설정..

    Date2003.04.23 CategorySystem/OS Byhooni Views16536
    Read More
Board Pagination Prev 1 ... 7 8 9 10 11 12 13 14 15 16 17 Next
/ 17