一、啟動(dòng)命令行,輸入: taskkill /f /im mysqld.exe //關(guān)閉mysql
二、轉(zhuǎn)入mysql的bin目錄下
三、輸入:mysqld --skip-grant-tables // 跳過密碼檢測
四、原窗口不關(guān)閉,新打開一個(gè),轉(zhuǎn)入mysql的bin目錄下
五、輸入:mysql -u root
六、輸入:修改原來密碼:update mysql.user set authentication_string=password('123456') where user='root' and Host = 'localhost';
以上所述是小編給大家介紹的修改Mysql root密碼的方法,希望對(duì)大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)VeVb武林網(wǎng)網(wǎng)站的支持!
新聞熱點(diǎn)
疑難解答
圖片精選