$ mysql
mysql> SET password=PASSWORD(
> UPDATE user SET password=PASSWORD(
> FLUSH PRIVILEGES;
> QUIT
> SET PASSWORD FOR user name=PASSWORD(
> QUIT
From:http://tw.wingwit.com/Article/program/MySQL/201311/29387.html
$ mysql
mysql> SET password=PASSWORD(
> UPDATE user SET password=PASSWORD(
> FLUSH PRIVILEGES;
> QUIT
> SET PASSWORD FOR user name=PASSWORD(
> QUIT