Bundling mysql with my application

I am working on a project in which i am using mysql.So, i want to create an installer which will install my application + mysql. and further i want to ask, as when we install mysql it asks for root password so is there any way to set it according to my jdbc code.

ADD: Is there anything wrong in the question??