Set the root password to install Mysql issue on Linux

 

Ubuntu 18.10.1

Mysql 5.7.26-0

 

1. Install mysql

apt-get install mysql-server

 

Installing can be used directly, but the new version does not prompt the user to set the root password during installation, use the following method to set:

sudo mysql_secure_installation

 

Process prompts whether to open VALIDATE PASSWORD PLUGIN, is to set password strength check, choose:

VALIDATE PASSWORD PLUGIN 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 plugin?

Press y|Y for Yes, any other key for No: 

 

Select yes, then let you select rating:

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: 

 

However, will let you enter the root password, attention must meet the requirements of your selected above:

Please set the password for root here.

New password: 

Re-enter new password: 

 

It will display the security of your password after you finish entering and prompts you to confirm whether or not to use this:

Estimated strength of the password: 50 
Do you wish to continue with the password provided?(Press y|Y for Yes, any other key for No) : y

 

After that some other settings. . .

 

Finally, note that you will be prompted to reload the privilege tables:

Reload privilege tables now? (Press y|Y for Yes, any other key for No) : y
Success.

 

Guess you like

Origin www.cnblogs.com/zoneofmine/p/11031146.html