系統版本:
Welcome to the MySQL monitor.? Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.28-log
站在用戶的角度思考問題,與客戶深入溝通,找到欽南網站設計與欽南網站推廣的解決方案,憑借多年的經驗,讓設計與互聯網技術結合,創造個性化、用戶體驗好的作品,建站類型包括:成都網站制作、成都網站設計、企業官網、英文網站、手機端網站、網站推廣、國際域名空間、雅安服務器托管、企業郵箱。業務覆蓋欽南地區。
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
忘記密碼,編輯my.cnf服務配置文件
?[mysqld]段段中加入 skip-grant-tables語句,去掉認證
update user set password=password("root")where user='root';
修改密碼之后,無法立刻操作mysql,退出之后,重新連接mysql
執行語句報錯:
You must reset your password using ALTER USER statement before executing this statement
解決方案
set password = password("root");
該問題是由于密碼授權過期導致
文章標題:MySQL重置密碼
文章分享:http://vcdvsql.cn/article36/gghgpg.html
成都網站建設公司_創新互聯,為您提供微信公眾號、定制網站、搜索引擎優化、外貿建站、面包屑導航、網站維護
聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯