使用生产数据库值填充开发数据库
我想知道如何以简单的方式使用生产服务器 (MySQL) 中的值填充我的开发 SQLite 数据库。有没有一个很好的“railsy”方式来做到这一点? (也许是卡皮斯特拉诺或类似的东西?)
I'm wondering how I could populate my development SQLite database with my values from the production server (MySQL) in an easy way. Is there a nice "railsy" way for doing this? (capistrano or something like that maybe?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用以下脚本将mysqldump格式转换为sqlite3:
脚本将 mysql dump sql 文件转换为可以导入 sqlite3 db 的格式
然后只需看看以下文章即可编写自己的 capistrano 任务:
You can use the following script to convert mysqldump format to sqlite3:
script to convert mysql dump sql file into format that can be imported into sqlite3 db
Then just take a look at the following articles to write your own capistrano tasks: