Answer the question
In order to leave comments, you need to log in
How to understand the principle of working with a database?
This is a very stupid question, please understand. The opinion has strengthened in my mind that a database is such a file, by analogy with a text file or Excel tables. In fact, it turns out that there are such little-understood entities as a connection and a server. How can I work with the database, transfer it from the local server to the site, if it is not some kind of file? If I am working on a desktop program, then where can I get all these connection strings, login, password, if with an Excel spreadsheet file it’s enough just to know the path to it (and if it doesn’t exist, then create it accordingly)?
Answer the question
In order to leave comments, you need to log in
In my mind, the opinion has strengthened that the database is such a file
1. "transfer it from the local server to the site" you do not need to transfer data, you only need to transfer their structure, for this they came up with migrations. Well, if earlier you had a path to the file, now instead of this connection parameters.
2. For a desktop, sqlite is most likely to work, there is a file there. Well, or another built-in DBMS
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question