Contents

System/OS
2013.04.25 12:58

[mysql] mysql user 생성시 ERROR 1364

조회 수 28582 댓글 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. [mysql] 루트 암호 초기화

    Date2013.04.23 CategoryDatabase Byhooni Views11107
    Read More
  2. [mysql] MySQL 한글 깨짐 현상 해결하기(UTF8)

    Date2017.12.01 CategoryDatabase Byhooni Views5584
    Read More
  3. [mysql] MySql 에서 정렬 후 그룹 하는 방법

    Date2015.05.07 CategoryDatabase Byhooni Views3108
    Read More
  4. [mysql] MySQL 백업 및 복구

    Date2019.11.22 CategoryDatabase Byhooni Views887
    Read More
  5. [mysql] MySQL 데이터베이스 추가 및 사용자 추가

    Date2019.11.22 CategoryDatabase Byhooni Views754
    Read More
  6. [mysql] mysql user 생성시 ERROR 1364

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

    Date2013.05.29 CategorySystem/OS Byhooni Views19352
    Read More
  8. [mysql] MySql DB/테이블 사이즈 확인을 위한 쿼리

    Date2019.11.22 CategoryDatabase Byhooni Views758
    Read More
  9. [mysql] MacOS에 MySQL 설치, 설정, 암호 재설정

    Date2017.12.15 CategoryDatabase Byhooni Views1585
    Read More
  10. [mysql] error while loading shared libraries: libmysqlclient.so.10:

    Date2003.04.23 CategoryDatabase Byhooni Views12719
    Read More
  11. [mysql] ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

    Date2017.12.15 CategoryDatabase Byhooni Views1342
    Read More
  12. [mysql] DB->Text, Text->DB 변환

    Date2003.04.23 CategoryDatabase Byhooni Views12199
    Read More
Board Pagination Prev 1 ... 18 19 20 21 22 23 24 25 26 27 ... 98 Next
/ 98