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
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3c148-2c2fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3c148-2c2fa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?