Then I guess I'm stumped. You can see that the differences between 5c (left) and 5d (right) are small.
Code:
125c125
< $dump_params .= ' "--password=' . DB_SERVER_PASSWORD . '"';
---
> $dump_params .= ' "--password=' . escapeshellcmd(DB_SERVER_PASSWORD) . '"';
258c258
< $load_params .= ((DB_SERVER_PASSWORD =='') ? '' : ' "--password=' . DB_SERVER_PASSWORD . '"');
---
> $load_params .= ((DB_SERVER_PASSWORD =='') ? '' : ' "--password=' . escapeshellcmd(DB_SERVER_PASSWORD) . '"');
Can you do some testing with escapeshellcmd on your system and check the results? This works fine for me in similar environments.