亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

Mysql5.7.14 linux版密碼忘記完美解決辦法

 更新時間:2017年08月04日 15:22:11   投稿:mrr  
這篇文章主要介紹了Mysql5.7.14 linux版密碼忘記完美解決辦法,需要的朋友可以參考下

在/etc/my.conf文件中[mysqld] 下面最后增加一行:skip-grant-tables

記住是[mysqld]下最后,不要增加到[mysqld_safe]下面

保存之后,重啟Mysql,在linux命令行直接執(zhí)行:mysql回車

OK

修改密碼:

update mysql.user set password=password('root') where user='root'

結(jié)果報(bào)錯:

mysql> select host,user,password from user ;
ERROR 1054 (42S22): Unknown column 'password' in 'field list'
desc user;

查看字段發(fā)現(xiàn)沒有password字段,有authentication_string字段

update mysql.user set authentication_string=password('root') where user='root' ;

ok

刪除/etc/my.conf文件中[mysqld] 下面的skip-grant-tables

重啟mysql

總結(jié)

以上所述是小編給大家介紹的Mysql5.7.14 linux版密碼忘記完美解決辦法,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復(fù)大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評論