1. 程式人生 > >mysql忘記密碼

mysql忘記密碼

style lin date size eight art word left upd

在/ect/my.cnf中添加如下: skip-grant-tables sudo mysqld restart mysql回車,進入到sql >user mysql; >update user set authentication_string=password(‘123qwe‘) where user=‘root‘ and Host = ‘localhost‘; 搞定; 刪掉skip-grant-tables; sudo mysqld restart 完事;

mysql忘記密碼