重设 Mysql Root 密码
Stop mysqld and restart it with the
--skip-grant-tables --user=rootoptions (Windows users omit the--user=rootportion).-
Connect to the mysqld server with this command:
shell>
mysql -u root -
Issue the following statements in the mysql client:
mysql>
UPDATE mysql.user SET Password=PASSWORD('newpwd')
->WHERE User='root';
mysql>FLUSH PRIVILEGES;Replace “
newpwd” with the actualrootpassword that you want to use. You should be able to connect using the new password.

0 条评论:
发表评论
订阅 博文评论 [Atom]
<< 主页