Your MysqL connection id is 1 Server version: 5.6.50-log Source distribution copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered Trademark of Oracle Corporation and/or its affiliates. Other names may be Trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MysqL> use MysqL; Database changed MysqL> UPDATE MysqL.user SET Password=PASSWORD('123456') WHERE User='root'; Query OK, 4 rows affected (0.00 sec) Rows matched: 4 Changed: 4 Warnings: 0 MysqL> FLUSH PRIVILEGES -> ; Query OK, 0 rows affected (0.00 sec) MysqL> exit Bye