M
M
Mr_Smash2018-02-12 14:28:42
MySQL
Mr_Smash, 2018-02-12 14:28:42

How to give the customer the opportunity to connect the database without getting into the code?

There was such a question. I have a Python application, which I will then compile and give to the customer. The problem is that the connection to the database is in the code itself and, accordingly, without outside help, the customer will not be able to connect the database, and he does not give me access. How to solve this problem?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
Padre, 2018-02-12
@yii16

Put a text file in the folder with exe, from which the config for the database will be taken

V
Vladimir Kuts, 2018-02-12
@fox_12

Take the database connection parameters, for example, from the environment parameters.
Tell the customer from which environment parameters what you expect to receive.

W
Wexter, 2018-02-12
@Wexter

1) External config file
2) Passing options in arguments like "python app.py localhost dbname user password"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question