Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- MYSQL
- php
- 문자열
- RADIO
- @RequestBody
- 전자정부 표준프레임워크
- JSTL
- exception
- Oracle
- SSL
- DB
- checbox
- 이클립스
- 한글
- 톰캣
- 날짜
- java
- json
- spring form tag
- 오라클
- jquery
- maven
- HTML5
- 스크립트
- html
- switch
- 네이버스마트 에디터
- 호환성
- null
- 웹 플랫폼 설치 관리자
Archives
- Today
- Total
개인적인 정리
MySQL 기본 인증 플러그인 본문
MySQL 8.0 이상에서는 caching_sha2_password 가 default authentication plugin 이다.
(기존은 mysql_native_password plugin이 default 였다.)
어느 버전부터 변경되었는지는 잘 모름.
사용자 생성시 패스워드 방식을 다르게 할려면
mysql>CREATE USER 'sha2user'@'localhost' identified with caching_sha2_password by 'password';
mysql>CREATE USER 'nativeuser'@'localhost' identified with mysql_native_password by 'password';
라고 하면 된다.
기본 설정은 my.cnf (윈도우는 my.ini)에서 변경을 해준다.
default_authentication_plugin=caching_sha2_password
'DB > MYSQL' 카테고리의 다른 글
| MySQL sorting 대소문자 구별 (0) | 2020.03.06 |
|---|---|
| MySQL 시작시 my.ini 지정해서 시작하는 방법(서비스에 등록) (1) | 2020.03.05 |
| Incorrect string value: '\xEC\xA0\x84\xEC\x9E\x90...' for column... (0) | 2020.03.05 |
| Can't connect to local MySQL server through socket (0) | 2020.03.04 |
| SHOW GLOBAL VARIABLES (0) | 2020.02.17 |
| status 또는 \s (0) | 2020.02.17 |
| SUBSTRING_INDEX() 함수 (0) | 2020.02.17 |
| 사용자 계정 변경 (0) | 2020.02.17 |
Comments