[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]#
|