System/OS
2013.04.25 12:58

[mysql] mysql user 생성시 ERROR 1364

Views 28504 Votes 0 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. [mac] 맥(OSX)에서 NTFS, 윈도우에서 HFS+ 사용하기

    Date2014.03.12 CategorySystem/OS Byhooni Views5115
    Read More
  2. [mac] VirtualBox 실행 스크립트와 bash_profile 설정

    Date2020.07.08 CategorySystem/OS Byhooni Views951
    Read More
  3. [mac] SVN 1.8 업데이트 방법

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

    Date2013.04.23 CategorySystem/OS Byhooni Views29561
    Read More
  5. [mac] OS X 요세미티 사용자가 많이 겪는 버그와 몇몇 불편사항

    Date2015.01.04 CategorySystem/OS Byhooni Views1518
    Read More
  6. [mac] OS X 엘 캐피탄에서 Soudflower 사용하기

    Date2016.10.03 CategorySystem/OS Byhooni Views876
    Read More
  7. [mac] Mac에서 Mac으로 원격제어하기 (맥에서 맥으로)

    Date2013.10.08 CategorySystem/OS Byhooni Views36987
    Read More
  8. [mac] Mac OS에서 재생되는 사운드를 녹음하는 방법

    Date2016.10.03 CategorySystem/OS Byhooni Views1440
    Read More
  9. [mac] Mac OS 패키지 매니저, HomeBrew

    Date2015.01.03 CategorySystem/OS Byhooni Views1309
    Read More
  10. [mac] How to uninstall MySQL on Mac OS.

    Date2017.11.08 CategorySystem/OS Byhooni Views882
    Read More
  11. [mac] Homebrew/rvm/cocoapod setting

    Date2017.07.29 CategorySystem/OS Byhooni Views995
    Read More
  12. [mac] Charlesproxy 간단한 설정 내용~

    Date2013.11.12 CategorySystem/OS Byhooni Views12323
    Read More
  13. [macos] How to Fix ‘You Shut Down Your Computer Because of a Problem’

    Date2022.06.01 CategorySystem/OS Byhooni Views780
    Read More
  14. [linux] 한글 URL 인식할 수 있게 아파치(Apache) 설정 (mod_url.c 설치)

    Date2013.04.23 CategorySystem/OS Byhooni Views13057
    Read More
  15. [linux] 프로세스의 stat 상태에 대한 설명

    Date2013.04.23 CategorySystem/OS Byhooni Views10756
    Read More
  16. [linux] 프로세스 상태확인(ps)

    Date2003.04.23 CategorySystem/OS Byhooni Views12701
    Read More
Board Pagination Prev 1 3 4 5 6 7 ... 13 Next
/ 13