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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## pg_dump / pg_dumpall > 需使用 管理員 cmd 執行 pg_dump 工具用于備份單個 PostgreSQL 數據庫 pg_dumpall 工具用于備份 PostgreSQL 服務器中的所有的數據庫。 語法 ``` pg_dump -U username -W -F t db_name > output.tar ``` 注釋: * `-U username`: 指定連接 PostgreSQL 數據庫服務器的用戶。您可以在`username`位置使用自己的用戶名。 * `-W`: 強制`pg_dump`在連接到 PostgreSQL 數據庫服務器之前提示輸入密碼。按回車后,`pg_dump`會提示輸入`postgres`用戶密碼。 * `-F`: 指定輸出文件的格式,它可以是以下格式之一: * `c`: 自定義格式 * `d`: 目錄格式存檔 * `t`: tar 文件包 * `p`: SQL 腳本文件 * `db_name`是要備份的數據庫的名字。 * `output.tar`是輸出文件的路徑。 ### 恢復 有三種方式對數據進行回復 ### psql 執行 -f ``` psql -U username -f path_to_db_backup_file.sql ``` ### -i 導入sql ``` > CREATE DATABASE sakila; > \c sakila; \i C:/Users/Adam/Downloads/postgres-sakila-schema.sql \i C:/Users/Adam/Downloads/postgres-sakila-insert-data.sql ``` ### 使用 pg_restore
                  <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>

                              哎呀哎呀视频在线观看