设置root密码:
C:\MYSQL\BIN>mysql -u root mysql
mysql>Update user Set password=password('new_pass') where user='root';
mysql>Flush Privileges;
或
C:\MYSQL\BIN>mysql -u root mysql
mysql>Set password for root=password('new_pass');
或
C:\MYSQL\BIN>mysqladmin -u root password new_pass