linux notes : Set passwd for mysql

Sam-Tsengs-Computer:/usr/local/mysql/bin samtz$ ./mysql -u root mysql
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 120 to server version: 4.1.9-max

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> SET PASSWORD FOR root@localhost=PASSWORD(‘xxxxx’);
Query OK, 0 rows affected (0.14 sec)