doumor942473 2010-07-20 15:09
浏览 71
已采纳

从测试数据库更新生产数据库的脚本

On my local computer I have a test environment running XAMPP. I am working on a PHP / MySQL application.

Now I often make changes to the local website, but when I want to upload I have to do a lot of work. This is what I do now.

I export my local DB trough phpMyAdmin
I clear my remote DB I import the exported DB.

Sometimes the DB is kind of large so it takes a lot of time. Is there a script I can use that speeds up this process.

I have no remote access to the production DB
When I make changes to the local DB the website is turned off, so its just a mirror when done

  • 写回答

2条回答 默认 最新

  • douzi7890 2010-07-20 15:25
    关注

    You could use Phing's DBDeploy Task to manage your database migrations. This has the advantage that any changes to your database become an integral part of your versioning system.

    Here is an article describing how to do it:

    Alternatives are Rob Allen's Akrabat_Schema_Manager and I think Doctrine has one too.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 2024-五一综合模拟赛
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭