<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## 一、root密碼丟失 在配置文件my.cnf中,mysqld部分,加入 ``` skip-grant-tables ``` 然后重啟,即可規避密碼的驗證; ``` service mysqld restart ``` ![](https://img.kancloud.cn/c7/f0/c7f0a5e93cf69a722cddc93c4237ecdc_788x417.png) 登陸mysql,可以看到,任意密碼都能進入了; ![](https://img.kancloud.cn/3c/e3/3ce3e88479346265fb3cb8cd3f00adcf_1381x307.png) 如果需要恢復驗證密碼,則把配置文件中的`skip-grant-tables`取消掉,即可恢復驗證密碼; ### **密碼操作** 注意,如果這里需要執行涉及到密碼的操作,需要先執行 ``` flush privileges; ``` 否則,會拋出錯誤: ``` ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement ``` ## 二、獲取清理腳本 獲取當前庫全部表: ``` SELECT t.TABLE_NAME from information_schema.`TABLES` t WHERE t.TABLE_SCHEMA='iot' AND t.TABLE_TYPE='BASE TABLE'; ``` 獲取當前庫表清理腳本全集: ``` SELECT CONCAT('truncate ',t.TABLE_NAME,';') from information_schema.`TABLES` t WHERE t.TABLE_SCHEMA='iot' AND t.TABLE_TYPE='BASE TABLE'; ```
                  <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>

                              哎呀哎呀视频在线观看