<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] ## 找回Root密碼 1.停止mysql ``` sudo service mysql stop ``` 2. 以安全模式啟動 ``` sudo mysqld_safe –skip-grant-tables ``` 3. 進入mysql ``` mysql -u root ``` 更新root密碼 ``` UPDATE mysql.user SET Password=PASSWORD('123456') where User='root'; ``` 如果是5.7以上版本 ``` use mysql; update user set authentication_string=password('123456') where user='root'; ``` 4. 重啟mysql服務 ``` /etc/init.d/mysql restart ``` ## MySQL修改root密碼的4種方法 **方法1: 用SET PASSWORD命令**? 首先登錄MySQL。? 格式:mysql> set password for 用戶名@localhost = password(‘新密碼’);? 例子:mysql> set password for root@localhost = password(‘123’); **方法2:用mysqladmin**? 格式:mysqladmin -u用戶名 -p舊密碼 password 新密碼? 例子:mysqladmin -uroot -p123456 password 123 **方法3:用UPDATE直接編輯user表**? 首先登錄MySQL。? mysql> use mysql;? mysql> update user set password=password(‘123’) where user=’root’ and host=’localhost’;? mysql> flush privileges; **方法4:在忘記root密碼的時候,可以這樣? 以windows為例:**? 1\. 關閉正在運行的MySQL服務。? 2\. 打開DOS窗口,轉到mysql\\bin目錄。? 3\. 輸入mysqld –skip-grant-tables 回車。–skip-grant-tables 的意思是啟動MySQL服務的時候跳過權限表認證。? 4\. 再開一個DOS窗口(因為剛才那個DOS窗口已經不能動了),轉到mysql\\bin目錄。? 5\. 輸入mysql回車,如果成功,將出現MySQL提示符 >。? 6\. 連接權限數據庫: use mysql; 。? 6\. 改密碼:update user set password=password(“123”) where user=”root”;(別忘了最后加分號) 。? 7\. 刷新權限(必須步驟):flush privileges; 。? 8\. 退出 quit。? 9\. 注銷系統,再進入,使用用戶名root和剛才設置的新密碼123登錄。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看