I am just starting to learn MySQL, im running 5.7.20 on Mac os 10.12 when i tried to use the following command in Terminal to reset password
mysql> UPDATE mysql.user SET authentication_string = PASSWORD('password')
i am keep getting
-bash: syntax error near unexpected token `('
Can anyone assist me with that error message? i have tried many different website no one seems to have an answer to that.
Last login: Tue May 28 02:07:04 on ttys001
192-168-1-5:~ Betty$ mysql> UPDATE mysql.user SET authentication_string = PASSWORD('password')
-bash: syntax error near unexpected token `('