The database password is the password for the 'MySQL user' that you are entering on line 21 of the config file. So make sure you are entering the correct password.
Secondly, this should not be an issue as it will accept special characters, so make sure you are surrounding the password in single quotes in the config file.