平台:win7 中安裝了mysql 5.6.17,參考鏈接https://blog.csdn.net/qq_36625195/article/details/80892856,https://www.cnblogs.com/wuchanming/p/5155784.html,https://www.cnblogs.com/wuchanming/p/5155784.html,https://jingyan.baidu.com/article/f3ad7d0ffc061a09c3345bf0.html,https://jingyan.baidu.com/article/597035521d5de28fc00740e6.html,https://www.cnblogs.com/cyrfr/p/6483529.html
問題:mysql服務啟動后,按上述鏈接中步驟,輸入命令沒反應,輸入update user set password=PASSWORD('123456') where user='root'沒響應,如下圖:
原因:輸入\h后獲取幫助,發現要加入\g才能表示將命令發送給mysql服務器
辦法1:在命令輸入完后,輸入\g完事
辦法2:在命令后面跟上\g,如下圖