第一种: mysql>UPDATE user SET Password=PASSWORD(‘new_password’) WHERE user=’root’; mysql>FLUSH PRIVILEGES;
第二种: mysql>SET PASSWORD FOR root=PASSWORD(‘new_password’);
第三种: shell>mysqladmin -u root password new_password;
© 2008, kangzj. 版权所有.
Name (required)
Mail (will not be published) (required)
Website
Leave a Reply