[root@bbuwoo mysql]# ./bin/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 1 to server version: 3.23.42
Type 'help' for help.
mysql>
mysql> UPDATE user SET Password=PASSWORD('newpasswd') WHERE user='root';
À§¿Í °°ÀÌ ÆÐ½º¿öµå¸¦ ¼öÁ¤ÇÑ´Ù.
Query OK, 1 row affected (0.02 sec)
Rows matched: 2 Changed: 1 Warnings: 0
mysql> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
±ÇÇÑ Å×À̺íÀ» ´Ù½Ã ÀÐ¾î µéÀδÙ.
mysql> quit
Bye
[root@bbuwoo mysql]#
|