DB/MYSQL
MySQL 기본 인증 플러그인
yeon.Biju
2020. 2. 17. 20:59
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