Special character in database.yml for password

I have a password for the database starting with '*'. When I put this on my production server, I get the following error:

- syntax error on line 17, col 25: ` password: *---------'.Exception class:ArgumentError. 

Thanks Anubhaw

+6
mysql ruby-on-rails yaml
source share
1 answer

An asterisk ( * ) has special meaning in YAML. Try using a quoted scalar:

 password: '*-------' 
+7
source share

All Articles