pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<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="tltbr7f" 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="zbzh7xr" 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="vbzp57d" 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>

                          主站蜘蛛池模板: 搪瓷搅拌器,搪玻璃搅拌器,搪玻璃冷凝器_厂家-淄博越宏化工设备 | 乳化沥青设备_改性沥青设备_沥青加温罐_德州市昊通路桥工程有限公司 | 利浦顿蒸汽发生器厂家-电蒸汽发生器/燃气蒸汽发生器_湖北利浦顿热能科技有限公司官网 | 活动策划,舞台搭建,活动策划公司-首选美湖上海活动策划公司 | 防水套管厂家-柔性防水套管-不锈钢|刚性防水套管-天翔管道 | 匀胶机旋涂仪-声扫显微镜-工业水浸超声-安赛斯(北京)科技有限公司 | 西安微信朋友圈广告投放_微信朋友圈推广_西安度娘网络科技有限公司 | LED投光灯-工矿灯-led路灯头-工业灯具 - 山东普瑞斯照明科技有限公司 | 尚为传动-专业高精密蜗轮蜗杆,双导程蜗轮蜗杆,蜗轮蜗杆减速机,蜗杆减速机生产厂家 | 右手官网|右手工业设计|外观设计公司|工业设计公司|产品创新设计|医疗产品结构设计|EMC产品结构设计 | 对夹式止回阀厂家,温州对夹式止回阀制造商--永嘉县润丰阀门有限公司 | 婚博会2024时间表_婚博会门票领取_婚博会地址-婚博会官网 | 会议会展活动拍摄_年会庆典演出跟拍_摄影摄像直播-艾木传媒 | 缠膜机|缠绕包装机|无纺布包装机-济南达伦特机械设备有限公司 | lcd条形屏-液晶长条屏-户外广告屏-条形智能显示屏-深圳市条形智能电子有限公司 | 水篦子|雨篦子|镀锌格栅雨水篦子|不锈钢排水篦子|地下车库水箅子—安平县云航丝网制品厂 | 根系分析仪,大米外观品质检测仪,考种仪,藻类鉴定计数仪,叶面积仪,菌落计数仪,抑菌圈测量仪,抗生素效价测定仪,植物表型仪,冠层分析仪-杭州万深检测仪器网 | 自动部分收集器,进口无油隔膜真空泵,SPME固相微萃取头-上海楚定分析仪器有限公司 | 复合土工膜厂家|hdpe防渗土工膜|复合防渗土工布|玻璃纤维|双向塑料土工格栅-安徽路建新材料有限公司 | 除甲醛公司-甲醛检测治理-杭州创绿家环保科技有限公司-室内空气净化十大品牌 | SRRC认证|CCC认证|CTA申请_IMEI|MAC地址注册-英利检测 | 市政路灯_厂家-淄博信达电力科技有限公司 | 电竞馆加盟,沈阳网吧加盟费用选择嘉棋电竞_售后服务一体化 | 中空玻璃生产线,玻璃加工设备,全自动封胶线,铝条折弯机,双组份打胶机,丁基胶/卧式/立式全自动涂布机,玻璃设备-山东昌盛数控设备有限公司 | 蒸汽热收缩机_蒸汽发生器_塑封机_包膜机_封切收缩机_热收缩包装机_真空机_全自动打包机_捆扎机_封箱机-东莞市中堡智能科技有限公司 | 【ph计】|在线ph计|工业ph计|ph计厂家|ph计价格|酸度计生产厂家_武汉吉尔德科技有限公司 | 搅拌磨|搅拌球磨机|循环磨|循环球磨机-无锡市少宏粉体科技有限公司 | 振动筛,震动筛,圆形振动筛,振动筛价格,振动筛厂家-新乡巨宝机电 蒸汽热收缩机_蒸汽发生器_塑封机_包膜机_封切收缩机_热收缩包装机_真空机_全自动打包机_捆扎机_封箱机-东莞市中堡智能科技有限公司 | 磁棒电感生产厂家-电感器厂家-电感定制-贴片功率电感供应商-棒形电感生产厂家-苏州谷景电子有限公司 | 上海地磅秤|电子地上衡|防爆地磅_上海地磅秤厂家–越衡称重 | 胶原检测试剂盒,弹性蛋白检测试剂盒,类克ELISA试剂盒,阿达木单抗ELISA试剂盒-北京群晓科苑生物技术有限公司 | 茅茅虫AI论文写作助手-免费AIGC论文查重_写毕业论文降重 | 回收二手冲床_金丰旧冲床回收_协易冲床回收 - 大鑫机械设备 | Jaeaiot捷易科技-英伟达AI显卡模组/GPU整机服务器供应商 | 上海租车公司_上海包车_奔驰租赁_上海商务租车_上海谐焕租车 | 隆众资讯-首页_大宗商品资讯_价格走势_市场行情 | 水平垂直燃烧试验仪-灼热丝试验仪-漏电起痕试验仪-针焰试验仪-塑料材料燃烧检测设备-IP防水试验机 | Dataforth隔离信号调理模块-信号放大模块-加速度振动传感器-北京康泰电子有限公司 | 吸音板,隔音板,吸音材料,吸音板价格,声学材料 - 佛山诺声吸音板厂家 | 哔咔漫画网页版在线_下载入口访问指引 | 流程管理|流程管理软件|企业流程管理|微宏科技-AlphaFlow_流程管理系统软件服务商 |