The reason: Because the password encryption rules msql 8.X not like 5.X, so modify the service-side encryption rules to solve this problem.
step:
ALTER USER 'root' @ 'localhost' IDENTIFIED BY 'Qaz123 #' PASSWORD EXPIRE NEVER; # modify the encrypted rules
ALTER USER 'root' @ 'localhost' IDENTIFIED WITH mysql_native_password BY 'Qaz123 #'; # update about the user's password
FLUSH PRIVILEGES; # refresh permission