I am trying to take a db backup with a php file that is running from a cronjob. It was running fine when I tested with sample db. But when I used the actual db there was an error.
I am using shell_exec() to run the command from the php file and the error is:
sh: -c: line 0: syntax error near unexpected token `)'
I understand that this happens because the password starts with a special character ')'.
What can I do to solve this issue WITHOUT CHANGING the password?