Last modified: 2010-12-16 09:25:11 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).
*** This bug has been marked as a duplicate of bug 25969 ***