3 回答

梵蒂岡之花
TA貢獻1900條經驗 獲得超5個贊
首先連接到MYSQL數據庫,然后:
>use mysql;
>select user,password from user where user in
(select table_schema from information_schema.table where table_name=
'admin')
;
當然得到的PASSWORD是加密過的。
可以通過語句:
> update user set password=PASSWORD('newpassword') where user in
(select table_schema from information_schema.table where table_name=
'admin')
;
將密碼修改為你想要的密碼。(注:有些操作需要有足夠的權限。)
添加回答
舉報
0/150
提交
取消