mysql
How to change password in mysql #
mysql.server stop # mysql 종료
mysql.server start --skip-grant-tables # mysql 권한없이 접근 허용
mysql -u root # mysql root로 접근
update mysql.user set authentication_string=null where user='root'; # 임시로 password 삭제
flush privileges; # 권한 적용
mysql.server restart; # mysql 재실행
mysql -u root; # mysql 접근
alter user 'root'@'localhost' identified with caching_sha2_password by '<password>'; # 비밀번호 변경
SHOW VARIABLES LIKE 'validate_password%'; # 권한 확인
SET GLOBAL <policy-name>=<VALUE>; # 권한 변경