Mysql login error

when you install the latest version of mysql, on Ali CVM, you can log in from the command line, but when you log in with navicat for mysql, you will be prompted
client does not support authentication protocol requested by server;consider upgrading MySql client

.

look for tutorials online and say that because the new mysql server version uses the new password authentication mechanism, the password needs to be changed
set password for "root"@"localhost"=old_password (" 123");

but when I change the password on the command line, I prompt for a syntax error:

clipboard.png

Please tell me where the mistake is, thank you very much

Mar.04,2021

mysql 8.0? Take a look at this
https://codeshelper.com/n/13.


or you can take a look at the http://www.voidcn.com/article.

mentioned here.
Menu