1
I connected mysql on Mac OS X using this command:
mysql -u root -p -h 127.0.0.1
After I logged in, I fired up this command:
select user();
and it showed:
root@localhost
and even wired, I already change the root password on 127.0.0.1 via SET PASSWORD
command.
When I typed in
show grants for 'root'@'127.0.0.1';
the password did change in the result.
However, I still have to use the old password to log in with the following command:
mysql -u root -p -h 127.0.0.1
QUESTIONS
- Could you tell me why this happened?
- Is there anything wrong here?