Mysqldump task

Mysqldump task

Description

Task to process mysqldump, a database backup program (see: dev.mysql.com ).

Installation

$ apt-get install mysql-client-5.5

Mysqldump task parameters

Mysqldump task parameters

Attribute Description Value Required
database The database name yes
user The user name default: root no
password The user password no
host The database host default: localhost no
port The database port default: 3306 no
tofile The output file no

Examples

<project name="mysqldump task">
	<taskdef name="mysqldump"
		classname="net.sourceforge.ant4x.taskdefs.database.MysqldumpTask"
		classpath="PATH/TO/ant4x.jar"/>
		
	<target name="mysqldump">
		<mysqldump user="root" password="1234" database="db-ant4x" tofile="dump.sql" />
	</target>
</project>