mysqladmin [OPTIONS] command command....
-u, --user=# User for login if not current user
-p, --password[=...] Password to use when connecting to server 作者:
happy 时间: 2006-4-21 15:14
设置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');