N
N
Narek2015-02-13 18:50:19
MySQL
Narek, 2015-02-13 18:50:19

How to set up 2 connections to MySQL in ZF2 + Doctrine 2?

Hi friends!
Please tell me how to set up two database connections so that you can also update the structure of these databases from the command line.
I use this solution stackoverflow.com/questions/11291502/doctrine-2-mu...
But when running the command:

vendor/bin/doctrine-module orm:schema-tool:update --force

only one database is updated.
Why do I need this (maybe tell me another solution)?
I have a system that uses an address base (FIAS, KLADR).
In MySQL, the address database takes up a lot of space (about 30GB including indexes).
I have a database backup every day, but it probably makes no sense to backup the address database, it almost does not change.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question