Ticket #5 (closed defect: fixed)
mysql passwords containing $ aren't working
| Reported by: | NilsLindenberg | Owned by: | unassigned |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1.6.2 |
| Component: | installer | Version: | 1.1.6.0 |
| Severity: | minor | Keywords: | installer password database |
| Cc: |
Description
from http://wikka.jsnx.com/WikkaBugs:
The installation succeed but the wiki doesn't work(connection pb if the db password contains one or more dollars symbols '$'. The error occur at the creation of the wakka object : "The wiki is currently unavailable. Error : Unable to connect to the Mysql database"
Did you tried to escape them? For example "john$doe" replaced by "john\$doe". AFAIK, it isn't a wikka bug but a php engine's side effect. All string beginning with $ are considered as variables and are interpreted as is. -- Piv Wan
Solution is to simply use single quotes instead of double quotes so $ is not interpreted as the start of a variable name; involves some changes in the installer. Will likely appear in 1.1.6.1 --Java Woman