MySQL [MariaDB 10.1.20] 패스워드 복잡도 설정
페이지 정보
본문
MySQL 5.6 , MariaDB 10.1.20 이상일때 설정이 가능합니다.
1. MariaDB 버전 확인
[root@localhost ~]# mysql --version
mysql Ver 15.1 Distrib 10.1.25-MariaDB, for Linux (x86_64) using readline 5.1
2. simple_password_check.so 파일이 있는지 확인
[root@localhost ~]# find / -name simple_password_check.so -print
/usr/lib64/mysql/plugin/simple_password_check.so
3. MariaDB 실행
[root@localhost ~]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 821
Server version: 10.1.25-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
4. 패스워드 복잡도 확인
MariaDB [(none)]> show variables like 'simple%';
Empty set (0.00 sec)
MariaDB [(none)]> install soname'simple_password_check';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> show variables like 'simple%';
+-----------------------------------------+-------+
| Variable_name | Value |
+-----------------------------------------+-------+
| simple_password_check_digits | 1 |
| simple_password_check_letters_same_case | 1 |
| simple_password_check_minimal_length | 8 |
| simple_password_check_other_characters | 1 |
+-----------------------------------------+-------+
4 rows in set (0.00 sec)
참고자료
http://sarc.io/index.php/mariadb/802-maria
1. MariaDB 버전 확인
[root@localhost ~]# mysql --version
mysql Ver 15.1 Distrib 10.1.25-MariaDB, for Linux (x86_64) using readline 5.1
2. simple_password_check.so 파일이 있는지 확인
[root@localhost ~]# find / -name simple_password_check.so -print
/usr/lib64/mysql/plugin/simple_password_check.so
3. MariaDB 실행
[root@localhost ~]# mysql
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 821
Server version: 10.1.25-MariaDB MariaDB Server
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
4. 패스워드 복잡도 확인
MariaDB [(none)]> show variables like 'simple%';
Empty set (0.00 sec)
MariaDB [(none)]> install soname'simple_password_check';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> show variables like 'simple%';
+-----------------------------------------+-------+
| Variable_name | Value |
+-----------------------------------------+-------+
| simple_password_check_digits | 1 |
| simple_password_check_letters_same_case | 1 |
| simple_password_check_minimal_length | 8 |
| simple_password_check_other_characters | 1 |
+-----------------------------------------+-------+
4 rows in set (0.00 sec)
참고자료
http://sarc.io/index.php/mariadb/802-maria
댓글목록
등록된 댓글이 없습니다.