Whenever I run
mysql -u root mysql
I get an error like:
ERROR 1698 (28000): Access denied for user: 'root@localhost'
I tried running
update user set authentication_string=password('akshansh') where USER='root'
But I got
bash: syntax error near unexpected token `('
Then I ran
$ mysql>FLUSH PRIVILEGES
I still get an error:
ERROR 1045 (28000): Access denied for user: 'root@localhost' (using password: NO)
I've tried all possible solution on Stack Overflow or any other website.
I've also tried deleting and re-installing MySQL. I am still not able to reset the password.