(file contains restore commands)
This works:
<cfexecute
name="/usr/bin/mysql"
arguments="mysql --host=127.0.0.1 --port=3306 --user={myUser} --password={myPass} execute='CREATE DATABASE newClientDB'"
variable="results"
timeout="60"/>
This does not work:
<cfexecute
name="/usr/bin/mysql"
arguments="mysql --host=127.0.0.1 --port=3306 --user={myUser} --password={myPass} newClientDB < /usr/share/apache-tomcat-7.0.27/webapps/myApp/mysql/restoreMasterTables.sql"
variable="results"
timeout="60"/>
I have tried everything that I can think of to escape the bracket but the statement wont run.