I am new to mysql backups. I read [here](http://dev.mysql.com/doc/refman/5.0/en/innodb-backup.html) and it is said how to backup a running database,but it is commercial. Please any one tell my how to back up innodb mysql database with its data and how to restore it with clear code samples in a java applications for swing applications
.(how to stop the server,back up, then restart it.. mysql queries and java statements) .