Just tried again - same result.

This time -
I deleted the directory on the server and then recreated it.
Downloaded the V.5.1 zip from ZC website.
Uploaded it to the server and decompressed it.
Ran the install.

No joy - still errors on saving the database details.