Open MJingv opened 5 years ago
stop
terminal
cd /usr/local/mysql/bin/ sudo su ./mysqld_safe --skip-grant-tables &
./mysql FLUSH PRIVILEGES; SET PASSWORD FOR 'root'@'localhost' = PASSWORD('你的新密码');
忘记密码
stop
terminal
terminal