[root@localhost ~]# mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No: y
There are three levels of password validation policy:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
<!--
비밀번호 정책 선택
0 : 길이 8 이하
1 : 길이 8 이하, 숫자, 대/소문자 혼합, 특수 문자 사용
2 : 길이 8 이하, 숫자, 대/소문자 혼합, 특수 문자, dictionary 파일 사용
-->
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG: 1 <!-- 원하는 정책 입력 -->
Please set the password for root here.
New password:
Sorry, you can't use an empty password here.
New password:
Sorry, you can't use an empty password here.
New password:
Re-enter new password:
Estimated strength of the password: 0
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : ^C
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# mysql_secure_installation
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
The 'validate_password' component is installed on the server.
The subsequent steps will run with the existing configuration
of the component.
Please set the password for root here.
New password:
Re-enter new password:
Sorry, passwords do not match.
New password:
Re-enter new password:
Estimated strength of the password: 100
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y
By default, a MySQL installation has an anonymous user,
allowing anyone to log into MySQL without having to have
a user account created for them. This is intended only for
testing, and to make the installation go a bit smoother.
You should remove them before moving into a production
environment.
Remove anonymous users? (Press y|Y for Yes, any other key for No) : y
Success.
Normally, root should only be allowed to connect from
'localhost'. This ensures that someone cannot guess at
the root password from the network.
Disallow root login remotely? (Press y|Y for Yes, any other key for No) : n
... skipping.
By default, MySQL comes with a database named 'test' that
anyone can access. This is also intended only for testing,
and should be removed before moving into a production
environment.
Remove test database and access to it? (Press y|Y for Yes, any other key for No) : y
- Dropping test database...
Success.
- Removing privileges on test database...
Success.
Reloading the privilege tables will ensure that all changes
made so far will take effect immediately.
Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.
All done!
[root@localhost ~]#
'얕고넓은지식 > linux' 카테고리의 다른 글
rocky linux 8에...ssl 인증서 https 가능하게 만들어보자 Let's Encrypt SSL 무료 인증서로 Apache (0) | 2021.12.19 |
---|---|
rocky linux 웹 서버설치 한방에 따라하기 (0) | 2021.12.17 |
리눅스 CPU 온도체크 기록하기 (0) | 2021.12.13 |
vendor preset: disabled....등 총괄적인 enable (1) | 2021.12.05 |
rocky linux mysql 에러 ERROR 1045 (28000) (0) | 2021.12.05 |
rocky linux mysql 상태확인 그리고 사용하기로 바꾸기 (0) | 2021.12.05 |
rocky linux mysql 설치 (0) | 2021.12.05 |
rocky linux mysql 버전확인 (0) | 2021.12.05 |
Rocky Linux 설치 usb 만들기 (0) | 2021.12.04 |
rockylinux를 다운받아보자 (0) | 2021.12.04 |