Last modified: 2013-06-25 16:03:52 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 T52025, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50025 - rebuildall uses wgDBuser (instead of wgDBadminuser), can fail with MySQL
rebuildall uses wgDBuser (instead of wgDBadminuser), can fail with MySQL
Status: UNCONFIRMED
Product: MediaWiki
Classification: Unclassified
Maintenance scripts (Other open bugs)
1.19.5
PC Linux
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-22 17:38 UTC by Zach
Modified: 2013-06-25 16:03 UTC (History)
0 users

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


Attachments

Description Zach 2013-06-22 17:38:00 UTC
If I set "$wgDBuser = $wgDBadminuser;" and "$wgDBpassword = $wgDBadminpassword;" (where wgDBadminuser has full database privileges), then rebuildall.php works just fine.

However, if I use a separate wgDBuser which has only SELECT, INSERT, UPDATE and DELETE permissions to the database (as described in http://www.mediawiki.org/wiki/LocalSettings.php#Security), then rebuildall.php fails as follows:

> php maintenance/rebuildall.php --conf ./LocalSettings.php 
** Rebuilding fulltext search index (if you abort this will break searching; run this script again to fix):
Dropping index...
A database error has occurred.  Did you forget to run maintenance/update.php after upgrading?  See: https://www.mediawiki.org/wiki/Manual:Upgrading#Run_the_update_script
Query: ALTER TABLE `searchindex` DROP INDEX si_title, DROP INDEX si_text
Function: RebuildTextIndex::dropMysqlTextIndex
Error: 1142 ALTER command denied to user '[wgDBuser]'@'localhost' for table 'searchindex' ([MySQLhost])

It seems that if a command to ALTER the DB is required, then it should be using wgDBadminuser rather than wgDBuser.


MySQL 5.5.31
Comment 1 Gerrit Notification Bot 2013-06-25 06:19:32 UTC
Related URL: https://gerrit.wikimedia.org/r/70371 (Gerrit Change Ifbd1d1d1d9c0d6f53ce13b92d94824beee67963f)
Comment 2 Gerrit Notification Bot 2013-06-25 06:19:34 UTC
Related URL: https://gerrit.wikimedia.org/r/70371 (Gerrit Change Ifbd1d1d1d9c0d6f53ce13b92d94824beee67963f)
Comment 3 Gerrit Notification Bot 2013-06-25 16:03:52 UTC
https://gerrit.wikimedia.org/r/70371 (Gerrit Change Ifbd1d1d1d9c0d6f53ce13b92d94824beee67963f) | change APPROVED and MERGED [by jenkins-bot]

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


Navigation
Links