I want to export site data from one Matomo instance into another existing Matomo instance with the https://plugins.matomo.org/Migration plugin, exporting from one servers database into another servers database.
I got the command ready, but it times out and says it can’t connect. So I think I need to use SSH tunneling, but am not sure how to use the example. Specifically the command at the end:
Both Matomo instances may be on different servers with proper firewall rules that restrict database access on target instance. In such case, the easiest way for source server to access target database is to create a ssh tunnel on new port (e.g. 3307) in another terminal. Then, execute to the above command with
--target-db-port=3307
instead to access port 3306 on target host. Example:ssh -NL 3307:localhost:3306 targetuser@targethost
Where should it be run? On my machine or Source server or Target server?
Alternatively, could I export the source database, install it in a temporary database on the target database, and do the import operation directly on the target server?
1 post - 1 participant