Task #41151
closed
Improve error message for failling database creation
Added by Nicole Cordes about 12 years ago.
Updated about 7 years ago.
Description
Due to compatibility (maybe?) the create database command can't use quotes for new database names. Therefore (at least for MySQL databases) the characters to use is limited to 0-9, a-z, A-Z, $, _
This should be mentioned when creating the database fails.
Hi!
Did you enter a database name with quotes? Or does TYPO3 quote somewhere where it is not appropriate?
I tried to create a database typo3_6-0_blank. Self quoting is not allowed as the database name is parsed by preg_match('/[^[:alnum:]_-]/', $newDatabaseName)
The problem is the "-" which is not allowed in unquoted database names (see http://dev.mysql.com/doc/refman/5.1/en/identifiers.html)
- Status changed from New to Under Review
Why no just quoting the database name in general?
This was discussed by some guys yesterday evening and we were not sure if other databases allow those `` quotes. So the safest way to support all database system was to stay unquoted.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
- Status changed from Under Review to Resolved
- Status changed from Resolved to Under Review
Hi Nicole,
what is the state of the 4.7 fix?
- Status changed from Under Review to Resolved
4.7 gets only security fixes, closed.
- Status changed from Resolved to Closed
Also available in: Atom
PDF