原文链接:http://www.lvwo.com/blog/index.php?op=ViewArticle&articleId=1425&blogId=11
mysql密码清空
mysql密码丢失后,在mysql命令行下执行如下命令,即可将root用户密码清空:
safe_mysqld –skip-grant-tables&
mysql修改密码
mysql修改,可在mysql命令行执行如下:
mysql -u root mysql
mysql> UPDATE user SET password=PASSWORD(“new password”) WHERE user=’name’;
mysql> FLUSH PRIVILEGES;
mysql> QUIT