可以在VS2010中将SVN与MySQL一起使用吗? [英] Possible to use SVN with MySQL in VS2010?

查看:56
本文介绍了可以在VS2010中将SVN与MySQL一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个ASP.NET项目,该项目使用MS-SQL作为数据库,而版本控制由Ankh SVN负责. ASP.NET中的MS-SQL数据库存储在App_Data文件夹中,这意味着它们是通过Subversion版本化的.
我想从MS-SQL切换到MySQL,但是MySQL数据库似乎没有存储在Visual Studio项目文件夹中……这肯定意味着它们不会包含在任何Subversion提交中( ?).

确保MySQL数据库包含在Subversion提交中的最佳方法是什么?例如.像MS-SQL一样,App_Data文件夹中是否可以包含MySQL数据库?

I have an ASP.NET project which has used MS-SQL as a database, with version control being taken care of by Ankh SVN. MS-SQL databases in ASP.NET are stored in the App_Data folder, which means that they are versioned by subversion.

I''m wanting to switch from MS-SQL to MySQL, but MySQL databases don''t seem to be stored in the visual studio project folder... which surely means that they won''t be included in any subversion commits (?).

What''s the best way to ensure an MySQL database is included in subversion commits? E.g. Is it possible to have the MySQL database in the App_Data folder like with MS-SQL?

Thanks!

推荐答案

通常,您可以将整个数据库导出为纯文本文件.

使用PHP My Admin,您可以选择数据库,然后将其导出,它将所有数据库存储到您的下载文件夹中的文本文件中...然后,您可以将该文件放入您的subversion文件夹中.

一点点额外的工作,但它可以工作.

祝你好运!
Typically you can export the entire database in a plain text file.

Using PHP My Admin you can select the database and then EXPORT it and it will store all the database into a text file in your downloads folder... Then you could put that file into your subversion folder.

A ittle bit of extra work but it could work.

Good luck!


这篇关于可以在VS2010中将SVN与MySQL一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆