From: Benjamin Lees Date: Mon, 14 Sep 2009 01:26:21 +0000 (+0000) Subject: (Bug 20634) Give the installer-created database user CREATE TABLE and ALTER TABLE... X-Git-Tag: 1.31.0-rc.0~39749 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=232d9d427c7592ff12a267c40fc90fb17ec1dd25;p=lhc%2Fweb%2Fwiklou.git (Bug 20634) Give the installer-created database user CREATE TABLE and ALTER TABLE rights so that upgrades will go more smoothly. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index fa013eb7b0..6cebc5d8c9 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -496,6 +496,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 482) Don't include TOC in the printable version if it has been hidden * Adjust the time according to the user configuration on Special:Revisiondelete * (bug 20624) Installation no longer allows "qqq" as the chosen language +* (bug 20634) The installer-created database user will now have CREATE TABLE + and ALTER TABLE rights so that upgrades will go more smoothly. == API changes in 1.16 == diff --git a/maintenance/users.sql b/maintenance/users.sql index 755bf9f700..e9d02b6527 100644 --- a/maintenance/users.sql +++ b/maintenance/users.sql @@ -4,9 +4,9 @@ -- from local settings. -- -GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES ON `{$wgDBname}`.* +GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES,CREATE TABLE,ALTER TABLE ON `{$wgDBname}`.* TO '{$wgDBuser}'@'%' IDENTIFIED BY '{$wgDBpassword}'; -GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES ON `{$wgDBname}`.* +GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES,CREATE TABLE,ALTER TABLE ON `{$wgDBname}`.* TO '{$wgDBuser}'@localhost IDENTIFIED BY '{$wgDBpassword}'; -GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES ON `{$wgDBname}`.* +GRANT DELETE,INSERT,SELECT,UPDATE,CREATE TEMPORARY TABLES,CREATE TABLE,ALTER TABLE ON `{$wgDBname}`.* TO '{$wgDBuser}'@localhost.localdomain IDENTIFIED BY '{$wgDBpassword}';