(1)打開wamp的mysql控制臺,提示輸入密碼,開始密碼為空,直接按回車
(2)輸入【use mysql】,控制臺提示【Database changed】
(3)輸入【update user set password=PASSWORD(‘要修改的密碼’) where user=’root’;】
有可能會提示錯誤,password unknown等等。
原因:
立即學習“PHP免費學習筆記(深入)”;
版本更新后,password變成了authentication_string。
解決辦法:
輸入【update user set authentication_string=PASSWORD(‘要修改的密碼’) where user=’root’;】
此時控制臺提示【Query OK,XXXXXXXXX】。
(4)最后輸入【flush privileges】,回車
(5)輸入【quit】,退出
(6)在目錄wampapps下找到phpmyadmin文件夾下的【config.inc.php】文件
修改【$cfg[‘Servers’][$i][‘password’] = ”】為【$cfg[‘Servers’][$i][‘password’] = ‘要修改的密碼’;】即可。
相關(guān)文章教程推薦:phpmyadmin教程
? 版權(quán)聲明
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載。
THE END
喜歡就支持一下吧
相關(guān)推薦