简体   繁体   English

在Eclipse Juno中成功创建MySQL数据库后,如何/在哪里保存数据库?

[英]After successfully creating a MySQL database within Eclipse Juno, how/where do I save my database?

I'm in the Database Perspective, and being that this is the first time for me working with the any type of database within Eclipse, I want to make sure I save it correctly upon exit. 我在数据库透视图中,这是我第一次使用Eclipse中的任何类型的数据库,因此我想确保退出时正确保存它。 When I click Save As, it prompts me to select a folder, but nothing jumps out at me as saying "Database Project". 当我单击另存为时,它提示我选择一个文件夹,但没有任何提示说“数据库项目”。

Or, can I save inside of my Dynamic Web Project Folder I already have, as that is it is a JSP project that will be working with this database? 还是可以将其保存在已有的Dynamic Web Project文件夹中,因为这是将与此数据库一起使用的JSP项目?

Actually, I got it. 其实我知道了。 Once the MySQL database is built, as long as everything is committed (set to Auto Commit), on my Tomcat Server it will stay there. 一旦构建了MySQL数据库,只要所有内容都已提交(设置为“自动提交”),它将在我的Tomcat服务器上保留在那里。

In other words, I can turn off my Server, exit Eclipse, come back in, and all tables are there as I left them. 换句话说,我可以关闭服务器,退出Eclipse,再次进入,所有表都在我离开它们的那儿。

So, in sum...nothing special needs to be done to retain the database. 因此,总而言之...无需任何特殊操作即可保留数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM