我已經(jīng)表演過的是:
sudo /etc/init.d/mysql stop
/usr/sbin/mysqld --skip-grant-tables --skip-networking &
在此之后,,我得到:
[Warning] Using unique option prefix key_buffer instead of
key_buffer_size is deprecated and will be removed in a future release.
Please use the full name instead.
150929 11:48:31[Note] /usr/sbin/mysqld (mysqld ....)starting as
process 3633 ...
它沒有進(jìn)一步處理。
該怎么辦,?
接下來的步驟可能是:
-
在終端:
mysql
-
在 mysql 外殼中:
use mysql;
select user,password,host from user;
update user set password=password("newpassword") where user=root;
select user,password,host from user;
flush tables;
FLUSH PRIVILEGES;
quit
-
在終端:
kill -15 `pgrep -f 'skip-grant-tables'
service mysql start
mysql -u root -p
相關(guān)文章推薦:
|