PDA

View Full Version : Mysql Password Not Escaped in Shell


user2037
7th February 2008, 20:55
After changing my Mysql password and trying to upgrade from 2.2.17 to 2.2.19 I noticed the followiing errors:


sh: -c: line 0: syntax error near unexpected token `('
sh: -c: line 0: `mysqldump -h localhost -u root -psecretwith()whichfails -c -t --add-drop-table --add-locks --all --quick --lock-tables ispconfig; > existing_db.sql'


It appears Ispconfig's upgrade script fails to properly escape the Mysql password in the shell.

falko
8th February 2008, 17:54
Does your MySQL password contain special characters?

user2037
10th March 2008, 14:29
Yes, it contains parentheses.

xabin
10th March 2008, 15:35
Yes, it contains parentheses.

sh: -c: line 0: syntax error near unexpected token `('

There you go :)