
复制E:\erlangPro\MySQLTest\src>MySQL -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 5.1.39-community MySQL Community Server (GPL) Type help; or \h for help. Type \c to clear the current input statement. MySQL> use MySQL Database changed MySQL> update user set passwordpassword=password(admin) where user=root; Query OK,绿色
2 rows affected (0.03 sec) Rows matched: 2 Changed: 2 Warnings: 0 MySQL> 1.2.3.4.5.6.7.8.9.10.11.12.