Method One: Log Mysql modified (mysql small black box)
Command: set password for the user name (usually root) @ localhost = password ( 'new password');
Method Two: Log in to edit MySQL user table
Command: mysql> user mysql;
mysql>update user set password=password('123') where user ='root' and host='localhost'
mysql>fiush privileges;