1. 개요
MySQL 계정의 비밀번호를 변경해보자
2. update 문
Update user set password=password(‘[비밀번호]’) where user=’root’;
flush privileges;
3. Set password
Set password for root=password(‘[비밀번호]’);
4. 비밀번호 강제 변경
service mysqld stop
mysqld_safe –skip-grant-tables
mysql -u root -p
update user set authentication_string=password(‘2261bbs’) where user=’root’;
flush privileges;
service mysqld restart
오류 발생시> ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
set password for root=password(‘[비밀번호]’);
오류 발생시> ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
원인 : 비밀번호 복잡성 검사
cd /usr/lib/mysql/plugin
mv validate_password.so validate_password.so.bak