Password is being used as a command
问题 I'm trying to run a command from a python file: p = subprocess.Popen("mysqldump -h" + hostname + " -u" + mysql_user + " --password=" + mysql_pw + " " + db + " > dump_" + hostname + "_" + timestamp + ".sql", shell=True) But the --password= and even -p keep getting hanged up on my password string The password is similar to this structure: Z@F&sfeafxegwa the command line error: 'sfeafxegwa' is not recognized as an internal or external command, operable program or batch file. 回答1: As already