How to integrate database into software

I am writing an application that uses MySQL to manage data. I'm worried if my client machine does not have preinstalled MySQL, it will not be able to run my application, right? One way or another, to embed the database server directly in the application or run the application without the data server. I wonder how all the software out there manipulates the data. This is not like we need to install some kind of database server before installing the application.

+3
source share
5 answers

MySQL is a client / server database engine, which means that you must install the client and server separately from each, and they exchange data through some kind of network protocol.

If you want to deploy a stand-alone application, you are probably better off using a library such as SQLite, which provides you with as much SQL database functionality as you might need in such an application, but works with local files instead and Requires the installation of a separate server.

+5
source

You can embed MySQL in your application, for more details see MySQL as an embedded database .

+2
source

, IP- (), . , , , .

0

- , MySQL MySQL ( ), , API (, XML-RPC).

, , : SQLite, Derby. XML/YAML.

0

db , , . , , , ( ). (, ADO). db . singleton desing enywhere . () , , ( db).

-1
source

Source: https://habr.com/ru/post/1772330/


All Articles