M
M
Maxim Alyukov2020-08-11 22:04:18
Django
Maxim Alyukov, 2020-08-11 22:04:18

How to connect multiple databases that are on multiple servers?

Hello. My task is to connect several databases, which are located like this:
The first database (Postgresql) is spinning in the same place as django itself, so there are no problems with it
The second (MySQL) is located on another server
I thought I would specify the HOST and PORT in the settings and it will be magic for me, but it’s not so simple . I
started poking around, but Connecting to the database skidded me and it doesn’t match very
well. Tell me, am I digging correctly and how did you connect another database, which is on another server?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dr. Bacon, 2020-08-11
@bacon

In the same place there is https://docs.djangoproject.com/en/3.1/topics/db/mu... and about "it doesn't really fit", we have to guess what exactly is "not really" there?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question