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

时间:2022-06-08 07:23:55

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. When I click Save As, it prompts me to select a folder, but nothing jumps out at me as saying "Database Project".

我在数据库透视图中,并且这是我第一次使用Eclipse中的任何类型的数据库,我想确保在退出时正确保存它。当我单击“另存为”时,它会提示我选择一个文件夹,但没有任何内容跳出来说“数据库项目”。

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?

或者,我可以保存在我已经拥有的动态Web项目文件夹中,因为这是一个将使用此数据库的JSP项目吗?

1 个解决方案

#1


0  

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.

所以,总而言之......保留数据库没有什么特别的需要。

#1


0  

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.

所以,总而言之......保留数据库没有什么特别的需要。