Actions
Defect #12229
closedDatabase connection fails with % in password
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Hi,
the database connection fails, if % is defined inside the password. Maybe this isn't automatically escaped?
Best regards,
Daniel
Updated by Jean-Philippe Lang about 12 years ago
Do you use double quotes to wrap your password in database.yml?
Updated by Daniel Felix about 12 years ago
No i used the example config and changed the password.
For Example:
production:
password: test%test /* fails */
production:
password: testtest /* works */
Maybe those do quotes should be added in the example, like in the postgres example.
Updated by Jean-Philippe Lang about 12 years ago
- Status changed from New to Closed
- Resolution set to Fixed
Yes, that should work with double quotes:
password: "test%test"
I've updated the configuration example in r10729.
Actions