https://bugzilla.wikimedia.org/show_bug.cgi?id=26348
Summary: Database name reported as invalid during installation Product: MediaWiki Version: 1.18-svn Platform: All OS/Version: All Status: NEW Severity: normal Priority: Normal Component: Installation AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: m...@tibanne.com CC: innocentkil...@gmail.com 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). -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l