Thread:Project:Support desk/Unable to update wiki database from unknown version

Old server crashed. I have an SQL dump of the old DB which I have imported back into MySQL. I'm guessing it's pre 1.5 because the collation in the dump is "latin_bin". I've also installed 1.21 into a different schema so I have the new DB with the new schema and the old data in the old schema.

I'm running on Windows w/ IIS. PHP 5.4.21. MySQL 5.6. New wiki seems to be running fine. Old setup was Windows w/ Apache (not set up by me). I'm hoping to update the old DB schema to match the new, then export the old data and re-import into the new schema (or just point the wiki at the newly updated schema).

The server is on a private LAN - internal use only.

I'm trying to run "php update.php --conf d:\website\wiki.old\Apache2\htdocs\wiki\localsettings.php" in the new wiki's maintenance folder. I receive the following error:

Fatal error: Cannot redeclare class SiteConfiguration in D:\website\wiki.old\Apache2\htdocs\wiki\includes\SiteConfiguration.php on line 17

Running the script without the --conf option runs successfully against the new schema - it finds there's nothing to do and exits normally.

Any suggestions?

Thanks,

-Jeff