简体   繁体   English

我们可以将.sql文件导入HSQL数据库吗?

[英]Can we import .sql file into HSQL database?

In my Java desktop application, i am using MySQL server for database operations but for some reasons i want to switch my application to work with HSQL database. 在我的Java桌面应用程序中,我正在使用MySQL服务器进行数据库操作,但是由于某些原因,我想将应用程序切换为可与HSQL数据库一起使用。 My question is can we import the .sql file exported from MySQL into HSQL database to get the database structure as it is into HSQL database ? 我的问题是我们可以将从MySQL导出的.sql文件导入到HSQL数据库中,以获取数据库结构,就像进入HSQL数据库一样吗? Thank you. 谢谢。

Yes, it's possible using a MySQL dump of your database, but you've to be carefull of some MySQL compatibilities : http://hsqldb.org/doc/guide/management-chapt.html#mtc_compatibility_mysql . 是的,可以使用数据库的MySQL转储,但是您必须谨慎一些MySQL兼容性: http : //hsqldb.org/doc/guide/management-chapt.html#mtc_compatibility_mysql

Maybe some databases tools : https://en.wikipedia.org/wiki/Comparison_of_database_tools , or the http://hsqldb.org/doc/util-guide/transfer-tool-chapt.html can do the trick. 也许某些数据库工具: https : //en.wikipedia.org/wiki/Comparison_of_database_toolshttp://hsqldb.org/doc/util-guide/transfer-tool-chapt.html可以解决问题。

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

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