This seems like a simple question but has caused me endless hours of frustration. It is only a small box inside the house that I am using for playing around.
I've tried the skip-grant-tables version and used the authentication_string field rather than the password version that is still knocking around. I've also tried the init-file method but no joy.
If I use the skip-grant-tables version and use the line:
update user set authentication_string=password('whywontitwork') where user='root';
The result I get is:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('whywontitwork') where user='root'' at line 1
I don't understand (at all) what is wrong with the syntax. It is driving me mad for what should be a tiny little issue (I think). Does anybody have any ideas? Thanks in advance. MySQL Ver 8.0.21-0ubuntu running on Ubuntu 20.04.