[root@hfzabbix ~]# 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
please enter 0 = low, 1 = medium and 2 = strong:
The ** you enter is a command to configure the MySQL server securely, and it performs the following steps:
root@hfzabbix ~]# mysql_secure_installation
This line is to run the MySQL Secure Installation command as root in the Linux terminal, which is a security configuration wizard that comes with MySQL and walks you through some basic security settings.
securing the mysql server deployment.
This line is the output of the command, indicating the start of the security configuration of the MySQL server.
connecting to mysql using a blank password.
This line is the output of the command, which means that you use an empty password to connect to the MySQL server, because when you first installed MySQL, the root user has not set a password, so you can directly press enter to log in.
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?
This line is the output of the command, which indicates that you can use the validate password component to test passwords and improve security, which checks the strength of the password and allows only the user to set a password that is strong enough. Then ask if you want to enable the validate password component.
press y|y for yes, any other key for no: y
This line is your input to indicate that you have opted in to enable validate password component, with y or y for yes and any other key for no.
there are three levels of password validation policy:
This line is the output of the command, indicating that there are three levels of password verification policies, which are:
low length >= 8
This line is the output of the command, which represents a low-level password verification policy that requires a password to be 8 characters or more long.
medium length >= 8, numeric, mixed case, and special characters
This line is the output of the command, which represents a medium-level password verification policy that requires a password to be 8 characters or more long and contain numbers, uppercase and lowercase letters, and special characters.
strong length >= 8, numeric, mixed case, special characters and dictionary file
This line is the output of a command that represents a high-level password verification policy that requires a password to be 8 characters or more long and contains numbers, uppercase and lowercase letters, special characters, and a dictionary file that checks if a password contains common words or patterns.
please enter 0 = low, 1 = medium and 2 = strong:
This line is the output of the command that lets you enter or 2 to select the level of the password verification policy, with 0 being low, 1 being medium, and 2 being high.