Mac failed to modify root password and reported an error.

I want to change my password, but I keep reporting errors. Enter by default and log in directly.

tried several commands with no problem.
UPDATE user SET authentication_string=password ("123456") WHERE user="root";
UPDATE mysql.user SET Password = PASSWORD (" 123456") WHERE User="root";
set password for root@localhost = password ("123");
the above three reported the same error.
clipboard.png

ps:mysql was just installed through brew. But the default installation path is not in this path: cd / usr/local/mysql/bin/

Jun.07,2021
Menu