又忘了mysql的密码- -囧

mysqld_safe  –skip-grant-tables

UPDATE mysql.user SET Password=PASSWORD(‘newpasswordhere‘) WHERE User=’root’;

FLUSH PRIVILEGES;

This entry was posted in Linux and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published.