Last modified: 2010-12-16 09:25:11 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 T28348, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26348 - Database name reported as invalid during installation
Database name reported as invalid during installation
Status: RESOLVED DUPLICATE of bug 25969
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.18.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-16 09:21 UTC by Mark Karpeles
Modified: 2010-12-16 09:25 UTC (History)
2 users (show)

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


Attachments

Description Mark Karpeles 2010-12-16 09:21:43 UTC
When the database name contains a dash ("-"), MediaWiki will refuse to use it, showing the following error message:

Invalid database name "db-name". Use only ASCII letters (a-z, A-Z), numbers (0-9) and underscores (_).



According to mysql's documentation:
http://dev.mysql.com/doc/refman/5.1/en/identifiers.html

There are some restrictions on the characters that may appear in identifiers:
* No identifier can contain ASCII NUL (0x00).
* Database, table, and column names should not end with space characters.
* Before MySQL 5.1.6, database and table names cannot contain “/”, “\”, “.”, or characters that are not permitted in file names.

Basically, dash is not forbidden by MySQL. What's worse, foo`bar\x01baz would be a valid database name.

While I'm not saying MediaWiki should support such non-sense database names (well, in theory it should), accepting the dash during installation could be at least help a bit (especially in cases where database naming scheme is not something we can decide).
Comment 1 p858snake 2010-12-16 09:25:11 UTC

*** This bug has been marked as a duplicate of bug 25969 ***

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


Navigation
Links