更新用戶密碼

更新用戶登錄密碼:

update  mysql.user  set  password=password('root')  where  user='root'  and  host='localhost';flush  privileges;

where: 匹配的條件
flush privileges : 立即刷新生效

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章