Task #41151
closedImprove error message for failling database creation
100%
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.
Updated by Markus Klein about 12 years ago
Hi!
Did you enter a database name with quotes? Or does TYPO3 quote somewhere where it is not appropriate?
Updated by Nicole Cordes about 12 years ago
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)
Updated by Gerrit Code Review about 12 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/14812
Updated by Markus Klein about 12 years ago
Why no just quoting the database name in general?
Updated by Nicole Cordes about 12 years ago
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.
Updated by Nicole Cordes about 12 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset d3a54feb6f67b1d75c3abb2dbcc8f6cf562aa7a4.
Updated by Gerrit Code Review about 12 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/14897
Updated by Gerrit Code Review about 12 years ago
Patch set 1 for branch TYPO3_4-6 has been pushed to the review server.
It is available at http://review.typo3.org/14898
Updated by Gerrit Code Review about 12 years ago
Patch set 1 for branch TYPO3_4-5 has been pushed to the review server.
It is available at http://review.typo3.org/14899
Updated by Jigal van Hemert about 12 years ago
- Status changed from Under Review to Resolved
Applied in changeset 825a6d53ee8fa05706bdca72956f9207fac3302d.
Updated by Gerrit Code Review about 12 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_4-7 has been pushed to the review server.
It is available at http://review.typo3.org/15884
Updated by Alexander Opitz over 11 years ago
Hi Nicole,
what is the state of the 4.7 fix?
Updated by Wouter Wolters over 11 years ago
- Status changed from Under Review to Resolved
4.7 gets only security fixes, closed.
Updated by Riccardo De Contardi about 7 years ago
- Status changed from Resolved to Closed