multi Zoneminders with one database

Support and queries relating to all previous versions of ZoneMinder
Locked
alau
Posts: 9
Joined: Fri Sep 21, 2007 4:55 pm

multi Zoneminders with one database

Post by alau »

Can different zoneminder instances write to the same database? Say if I have two or more computers capturing from cameras and they all set up to store to the same mysql server.

Thanks in advance,


alau
User avatar
winblowzxp
Posts: 14
Joined: Fri Dec 23, 2005 9:15 pm
Location: Republic of Texas, USA

Post by winblowzxp »

just use a prefix for your table and tell the php stuff to go there for database transactions. Use something like t1_zm and t2_zm.
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

winblowzxp wrote:just use a prefix for your table and tell the php stuff to go there for database transactions. Use something like t1_zm and t2_zm.
No it's not that simple.
You can use the same database server and create a database for each instance, otherwise you will need to change code in the zm binaries and the php code to suit your needs.
Locked