久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<tfoot id='0wWpq'></tfoot>

    <small id='0wWpq'></small><noframes id='0wWpq'>

    • <bdo id='0wWpq'></bdo><ul id='0wWpq'></ul>
  1. <i id='0wWpq'><tr id='0wWpq'><dt id='0wWpq'><q id='0wWpq'><span id='0wWpq'><b id='0wWpq'><form id='0wWpq'><ins id='0wWpq'></ins><ul id='0wWpq'></ul><sub id='0wWpq'></sub></form><legend id='0wWpq'></legend><bdo id='0wWpq'><pre id='0wWpq'><center id='0wWpq'></center></pre></bdo></b><th id='0wWpq'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0wWpq'><tfoot id='0wWpq'></tfoot><dl id='0wWpq'><fieldset id='0wWpq'></fieldset></dl></div>
    <legend id='0wWpq'><style id='0wWpq'><dir id='0wWpq'><q id='0wWpq'></q></dir></style></legend>

    1. 比較兩個 MySQL 數據庫

      Compare two MySQL databases(比較兩個 MySQL 數據庫)

          <tbody id='3QXMF'></tbody>

          <legend id='3QXMF'><style id='3QXMF'><dir id='3QXMF'><q id='3QXMF'></q></dir></style></legend>
            • <bdo id='3QXMF'></bdo><ul id='3QXMF'></ul>
            • <i id='3QXMF'><tr id='3QXMF'><dt id='3QXMF'><q id='3QXMF'><span id='3QXMF'><b id='3QXMF'><form id='3QXMF'><ins id='3QXMF'></ins><ul id='3QXMF'></ul><sub id='3QXMF'></sub></form><legend id='3QXMF'></legend><bdo id='3QXMF'><pre id='3QXMF'><center id='3QXMF'></center></pre></bdo></b><th id='3QXMF'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='3QXMF'><tfoot id='3QXMF'></tfoot><dl id='3QXMF'><fieldset id='3QXMF'></fieldset></dl></div>

              <small id='3QXMF'></small><noframes id='3QXMF'>

                <tfoot id='3QXMF'></tfoot>

                本文介紹了比較兩個 MySQL 數據庫的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我目前正在使用 MySQL 數據庫開發應用程序.

                I'm currently developing an application using a MySQL database.

                隨著開發的進行,數據庫結構仍在不斷變化和變化(我更改了我的本地副本,將一個單獨留在測試服務器上).

                The database-structure is still in flux and changes while development progresses (I change my local copy, leaving the one on the test-server alone).

                有沒有辦法比較數據庫的兩個實例,看看有沒有變化?

                Is there a way to compare the two instances of the database to see if there were any changes?

                雖然目前簡單地丟棄以前的測試服務器數據庫是好的,但隨著測試開始輸入測試數據,它可能會變得有點棘手.
                同樣的,但在生產后期還會再次發生...

                While currently simply discarding the previous test server database is fine, as testing starts entering test data it could get a bit tricky.
                The same though more so will happen again later in production...

                是否有一種簡單的方法可以對生產數據庫進行增量更改,最好是通過自動創建腳本來修改它?

                Is there an easy way to incrementally make changes to the production database, preferably by automatically creating a script to modify it?

                答案中提到的工具:

                • Red-Gate 的 MySQL Schema &數據比較(商業)
                • Maatkit(現為 Percona)
                • liquibase
                • 蟾蜍
                • Nob Hill 數據庫比較(商業)
                • MySQL 差異
                • SQL EDT(商業)
                • Red-Gate's MySQL Schema & Data Compare (Commercial)
                • Maatkit (now Percona)
                • liquibase
                • Toad
                • Nob Hill Database Compare (Commercial)
                • MySQL Diff
                • SQL EDT (Commercial)

                推薦答案

                如果您使用的是小型數據庫,我發現在兩個數據庫上都使用 --skip-comments--skip-extended-insert 選項來生成 SQL 腳本,然后在 SQL 腳本上運行 diff 效果很好.

                If you're working with small databases I've found running mysqldump on both databases with the --skip-comments and --skip-extended-insert options to generate SQL scripts, then running diff on the SQL scripts works pretty well.

                通過跳過注釋可以避免無意義的差異,例如運行 mysqldump 命令的時間.通過使用 --skip-extended-insert 命令,您可以確保使用自己的插入語句插入每一行.這消除了單個新記錄或修改記錄可能導致所有未來插入語句中的連鎖反應的情況.使用這些選項運行會產生更大的轉儲,沒有注釋,所以這可能不是你想要在生產使用中做的事情,但對于開發來說應該沒問題.我在下面列出了我使用的命令示例:

                By skipping comments you avoid meaningless differences such as the time you ran the mysqldump command. By using the --skip-extended-insert command you ensure each row is inserted with its own insert statement. This eliminates the situation where a single new or modified record can cause a chain reaction in all future insert statements. Running with these options produces larger dumps with no comments so this is probably not something you want to do in production use but for development it should be fine. I've put examples of the commands I use below:

                mysqldump --skip-comments --skip-extended-insert -u root -p dbName1>file1.sql
                mysqldump --skip-comments --skip-extended-insert -u root -p dbName2>file2.sql
                diff file1.sql file2.sql
                

                這篇關于比較兩個 MySQL 數據庫的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數根據 N 個先前值來決定接下來的 N 個行)
                reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結果;條款?)
                Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數的 ignore 選項是忽略整個事務還是只是有問題的行?) - IT屋-程序員軟件開發技
                Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環數組)
                pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調用 o23.load 時發生錯誤 沒有合適的驅動程序)
                How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數據庫表作為 Spark 數據幀讀取?)
                  <tbody id='4YGYZ'></tbody>

                    <i id='4YGYZ'><tr id='4YGYZ'><dt id='4YGYZ'><q id='4YGYZ'><span id='4YGYZ'><b id='4YGYZ'><form id='4YGYZ'><ins id='4YGYZ'></ins><ul id='4YGYZ'></ul><sub id='4YGYZ'></sub></form><legend id='4YGYZ'></legend><bdo id='4YGYZ'><pre id='4YGYZ'><center id='4YGYZ'></center></pre></bdo></b><th id='4YGYZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='4YGYZ'><tfoot id='4YGYZ'></tfoot><dl id='4YGYZ'><fieldset id='4YGYZ'></fieldset></dl></div>

                    • <bdo id='4YGYZ'></bdo><ul id='4YGYZ'></ul>
                    • <tfoot id='4YGYZ'></tfoot>

                      <small id='4YGYZ'></small><noframes id='4YGYZ'>

                        <legend id='4YGYZ'><style id='4YGYZ'><dir id='4YGYZ'><q id='4YGYZ'></q></dir></style></legend>

                          主站蜘蛛池模板: 国产精品毛片久久久久久 | 欧美日一区二区 | 中文字幕av一区二区三区 | 狠狠干av | 久久久久国产精品 | www.youjizz.com日韩| 99热在这里只有精品 | 在线观看黄色电影 | 天天操操 | 日韩国产欧美一区 | 欧洲亚洲视频 | 国产精品嫩草影院精东 | 日韩亚洲视频在线 | 国产精品日日做人人爱 | 7799精品视频天天看 | 久久a久久| 久艹av| 国产精品美女久久久av超清 | 天堂亚洲网 | 91久久精品国产 | 久久久夜色精品亚洲 | 操人视频在线观看 | 一区二区在线免费观看 | 日本一区视频在线观看 | 激情91 | 欧美淫片| www视频在线观看 | 国产一区二区三区四 | 特级黄一级播放 | 欧美亚洲激情 | 一区二区三区中文字幕 | 久久爱一区 | www.蜜桃av.com| 成人性视频免费网站 | 久艹av | 黄视频免费观看 | 国产伊人精品 | 99精品视频一区二区三区 | 日韩久久中文字幕 | 99精品欧美一区二区三区 | 一区二区三区四区国产 |