简体   繁体   中英

How to install SQL databases

I have built a Java application, I have compiled it into a setup.exe, I achieved this by using "inno compiler", everything works fine. I was just wondering if there is any way to install the SQL databases automatically? I have to export it, so I was wondering if there is a way of actually doing it automatically instead of manually?

Please let me know,

Many thanks in advance.

SQLite has JDBC drivers (for example https://bitbucket.org/xerial/sqlite-jdbc ) and creates a database that is a single file, so all you need is a directory you can write into for it to work. I would consider using it provided you do not have really large tables, as it may become a little slow. Incidentally I believe SQLite ships with PHP5, you mentioned PHP above.

I would check that there are no major licencing issues adding MySQL into something you are distributing, I expect you would at least have to amend your licence agreements. There may be some way of getting MySQL to install by using a shell script or bat file, but if MySQL is already installed then the default ports would already be used, so your MySQL would need its .ini file altering.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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