Mysql installation with Java application

Hi,

I have java application which uses mysql as backend.

How can I deploy mysql with the java application if its not installed on the client envirnoment.

I mean how do i create a setup that includes mysql with my application and installs both on the system.

Thanks & Regards,
Karunakar
LVL 1
gowniAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CEHJCommented:
You need to use an installer. You'd be better to use a java-based db that doesn't need installing, such as Derby or HSQL
borislavmarkovCommented:
You can use MYSQL with no installer :)
Just pack the files of mysql and read options to start from command line with no service.
Proceed like follows:
pack mysqlfiles in zip, then use your installer to unpack to mysql. If your mysql is 4.0/5.0 you have to place an init file and this file to configure your installation folder. like follows:
==== my.ini ====
...
basedir="E:/path .../MySQL/"
....
==============
if your mysql is 4.0/3.x it's even easy, just copy paste.
Then unpack a bat that you previously created which looks like follows:

=====mysqlstartup.bat======
mysqld-nt --standalone --character-set-server=utf8 --init-file=E:/path.../my.ini
======================

You have to make all this in your installer.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mayank SAssociate Director - Product EngineeringCommented:
>> You'd be better to use a java-based db that doesn't need installing, such as Derby or HSQL

Generally, if the client has agreed to MySql, its not easy to change the DB just like that :)

>> How can I deploy mysql with the java application if its not installed on the client envirnoment.

What do you use to install your application as of now? IzPack or Web-start or something of the sort?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.