Archived event export/import for upgrade/re-install...

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Archived event export/import for upgrade/re-install...

Post by lazyleopard »

I've got 1.19.5 running on system A. It's been working happily for quite a while, but the main system hardware's showing signs of flakeyness. I'm planning to put 1.20.1 onto new system B, which I've been building. There are a few catches:

System A runs mySQL 3.23.49, PHP 4.1.2, and Apache 1.3.26.
System B has mySQL 4.0.22, PHP 4.3.10, and Apache 2.0.52.

The easy thing to do is probably just to put a fresh install on system B and be done with it, but I have, I guess, fifty or sixty archived example events I'd quite like to hang on to.

Is there a relatively simple way to transfer the archived events from system A to system B so that they can be re-played on the new installation?
Rick Hewett
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Essentially I think you need to look at mysqldump. This will create a text based SQL dump of all, or part of, your DB which you can then import into your new DB. Be aware that some tables may have changed between versions but I think you might be lucky with the Events table. In fact I think you'd be better off duplicating your whole 1.19.5 DB and then manually applying the DB updates to ensure that all the id numbers etc are consistent across tables.

Phil
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

Cheers. ;)
Rick Hewett
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post by lazyleopard »

Hmmm... Seem to be getting a mysql error when trying to update the database from 1.19.5 to 1.20.1...

Code: Select all

ERROR 1044 at line 6: Access denied for user:
The user can do some things with the database, and has had select,insert,update,delete granted...

Ah! The superuser, however, does seem to be able to do what's needed.
Rick Hewett
Locked