0
在mysql命令中是否有任何替代<? 预先感谢您。替代为<在mysql命令
<exec executable="mysql" dir="${mysql.path}" failonerror="true">
<arg value="--user=pro"></arg>
<arg value="--password=pro"></arg>
<arg value="pro"></arg>
<arg value="< prdump.sql"></arg>
</exec>
<echo message="DB backup/restore"/>
错误:
构建失败,高管返回:1
exec任务的ANT文档具有用于指定文件输入的“输入”选项请参阅:https://ant.apache.org/manual/Tasks/exec.html –
您也可以考虑使用ANT sql任务直接连接到服务器。 –