Last modified: 2012-05-10 01:24:08 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T38721, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36721 - update.php reports ALTER command denied to wikiuser when making user_last_timestamp nullable
update.php reports ALTER command denied to wikiuser when making user_last_tim...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.19.0
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-10 01:09 UTC by Dan Barrett
Modified: 2012-05-10 01:24 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Barrett 2012-05-10 01:09:43 UTC
When updating from 1.17 to 1.19.0, I ran the maintenance/update.php script (with the --quick option) and received this database permissions message about my "wikiuser" user, whose name is "gentlegi_gguser":

Making user_last_timestamp nullable... A database query syntax error has occurred.
The last attempted database query was:
"ALTER TABLE `gg_user_newtalk` MODIFY user_last_timestamp varbinary(14) NULL default NULL
"
from within function "DatabaseBase::sourceFile( /path/w/maintenance/archives/patch-user-newtalk-timestamp-null.sql )".
Database returned error "1142: ALTER command denied to user 'gentlegi_gguser'@'localhost' for table 'gg_user_newtalk' (localhost)"

I've never received this kind of message from a MW database update. Did I do something wrong? Is anything misconfigured?

I was able to get around the issue by temporarily granting all privileges to this database user.
Comment 1 Sam Reed (reedy) 2012-05-10 01:11:49 UTC
(In reply to comment #0)
> When updating from 1.17 to 1.19.0, I ran the maintenance/update.php script
> (with the --quick option) and received this database permissions message about
> my "wikiuser" user, whose name is "gentlegi_gguser":
> 
> Making user_last_timestamp nullable... A database query syntax error has
> occurred.
> The last attempted database query was:
> "ALTER TABLE `gg_user_newtalk` MODIFY user_last_timestamp varbinary(14) NULL
> default NULL
> "
> from within function "DatabaseBase::sourceFile(
> /path/w/maintenance/archives/patch-user-newtalk-timestamp-null.sql )".
> Database returned error "1142: ALTER command denied to user
> 'gentlegi_gguser'@'localhost' for table 'gg_user_newtalk' (localhost)"
> 
> I've never received this kind of message from a MW database update. Did I do
> something wrong? Is anything misconfigured?
> 
> I was able to get around the issue by temporarily granting all privileges to
> this database user.

Yes, this is an config problem.

If you don't give your day to day user the rights, use the following $wgDBadminuser and $wgDBadminpassword
Comment 2 Dan Barrett 2012-05-10 01:24:08 UTC
Thanks Sam. I thought I had a $wgDBadminpassword defined, but I must have removed it when MediaWiki deprecated the AdminSettings.php file.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links