Last modified: 2011-01-06 22:44:01 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 25969 - Installation/ Upgrade impossible when database name contains hyphen
Installation/ Upgrade impossible when database name contains hyphen
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
All All
: Normal blocker with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
: 26348 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2010-11-17 04:02 UTC by Owltom
Modified: 2011-01-06 22:44 UTC (History)
2 users (show)

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


Description Owltom 2010-11-17 04:02:06 UTC
Some providers use a hyphen as part of the databasenames (e.g.

Example: dbxxxx-yyyy

The "dbxxxx-" cannot be changed by the user, it's fixed.

The mediawiki installation script breaks with an error (invalid database name).

In my case, an older mediawiki-database exists, but cannot be upgraded with the new installer, clean install won't work either.
Comment 1 Owltom 2010-11-17 16:32:19 UTC
the regexp in "/includes/installer/MysqlInstaller.php"

line 79: <code>} elseif ( !preg_match( '/^[a-zA-Z0-9_]+$/', $newValues['wgDBname'] ) ) {</code>

should allow "-" as part of wgDMname
Comment 2 p858snake 2010-12-16 09:25:11 UTC
*** Bug 26348 has been marked as a duplicate of this bug. ***
Comment 3 Sam Reed (reedy) 2010-12-16 11:10:51 UTC
The error message would also need to be changed. So really need to check and see whether Postgres will also allow that character
Comment 4 Chad H. 2011-01-06 22:44:01 UTC
Fixed in r79767.

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