MYSQL8.0.16 connections to the visualization window (solution)

After also changed the encryption, the previous version of encryption is "mysql_native_password", 8.0; all sorts of solutions MySQL 8.0 version removes the password field, instead authentication_string field, causing the Internet can be found to the problems of no effect change the encryption rule is "caching_sha2_password" It should be the user password encryption rule changes to the original encryption can be.

Specific steps are as follows, recording notes:

  1. Open the terminal, enter the command
    mysql -u root -p
    
  2. It should be noted that the password for the MySQL set must contain at least one uppercase letter, one lowercase letter, one special symbol, a number, at least eight characters; the password is in the beginning to install MySQL settings, if forgotten, Internet to resolve any issues.
  3. After entering your password, enter> mysql command-line mode
       # 切换到 mysql 数据库
       use mysql;
       
       # 设置用户密码永不过期
       alter user 'root'@'localhost' identified by 'your pwd' password expire never; # 用「mysql_native_password」加密方式更新 root 用户密码 alter user 'root'@'localhost' identified with mysql_native_password by 'your pwd'; # 刷新 flush privileges;

 

The method of the above pro-test available.

 

Guess you like

Origin www.cnblogs.com/KdeS/p/10972107.html