mysql 5.7 에서 암호를 변경을 하려 하면
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
라는 메세지가 뜬다. 보안강화로 암호를 복잡하게 안하면 변경이 안된다.
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4
Server version: 5.7.17
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'qqqq1111';
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '1q2W3e$r%T';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
mysql> quit
Bye
/usr/lib64/mysql/plugin/ 경로에 있는 validate_password.so을 삭제 하거나 이름을 변경해주면 된다.
# cd /usr/lib64/mysql/plugin/
# cd plugin/
# ls
adt_null.so debug innodb_engine.so libmemcached.so mypluglib.so rewrite_example.so semisync_slave.so
auth_socket.so group_replication.so keyring_file.so libpluginmecab.so mysql_no_login.so rewriter.so validate_password.so
connection_control.so ha_example.so keyring_udf.so locking_service.so mysqlx.so semisync_master.so version_token.so
# mv validate_password.so validate_password.so1
# service mysqld restart
Stopping mysqld: [ OK ]
Starting mysqld: [ OK ]
# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.17 MySQL Community Server (GPL)
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'qqqq1111';
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
'Linux' 카테고리의 다른 글
dmar drhd handling fault status reg 3 (0) | 2017.03.30 |
---|---|
Another app is currently holding the yum lock; waiting for it to exit... (0) | 2017.02.21 |
리눅스 메모리 슬롯 및 용량 확인 하기 (0) | 2016.07.28 |
swap 늘리기 (0) | 2016.07.15 |
Executable '/snpslmd' doesn't belong to any package and ProcessUnpackaged is set to 'no' (0) | 2016.06.29 |