Last modified: 2011-01-06 22:44:01 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 T27969, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25969 - Installation/ Upgrade impossible when database name contains hyphen
Installation/ Upgrade impossible when database name contains hyphen
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.17.x
All All
: Normal blocker with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 26348 (view as bug list)
Depends on:
Blocks:
  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: ---


Attachments

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

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.


Navigation
Links