Thread:Project:Support desk/Database error after updating MediaWiki from 1.5.2 to 1.6

I was in the process of updating MediaWiki when my database crashed.

I downloaded the tar of the latest release, copied the files into /var/www over the existing ones there, and ran /var/www/maintenance/update.php from the command line. The update script crashed with the error:

Database returned error "1142: CREATE command denied to user 'wikiuser'@'localhost' for table 'user_properties' (localhost)"

Opening the wiki in my browser gives the following error:

Database error

A database error has occurred Query: SELECT lc_value FROM `l10n_cache` WHERE lc_lang = 'en' AND lc_key = 'deps' LIMIT 1 Function: LCStore_DB::get Error: 1146 Table 'wikidb.l10n_cache' doesn't exist (localhost)

Any idea how I can fix this? My wiki is currently completely unusable.