Last modified: 2014-02-12 23:32:44 UTC
Installed new version of mediawiki and ran update.sql, which produced a syntax error in file patch-rev_sha1.sql Opened the file and saw that the ADD command had no "COLUMN" So I ran ADD COLUMN rev_sha1 varbinary(32) NOT NULL default ''; from PHPMyAdmin, which added the new column and that got everything working again. Original SQL command that produced the error: ADD rev_sha1 varbinary(32) NOT NULL default ''; Hope this is helpful.
Which database you are using in which version? COLUMN is optional in mysql (at least in 5.1)
Nevermind ... someone had re-enabled "magic quotes" in PHP. That was what caused the syntax errors. Sorry about that.
Follow up comment 2, this is INVALID