hi
i wanted to to change my sql root password from linux cli. so i enter these command in command line:
Code:
mysql>use mysql;
mysql>update user set password=PASSWORD("") where User='root';
as you see i forgot to set the new password in update statement, so i think root password became null. & now i cant login into mysql! i tried space, "", nothing, but neither of them worked out.
i know one solution is reset mysql password, but it seems weird that i cant log in.
anyone have any idea?