 复制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. |