setting up my database after i install MySQL as prerequisit - Advanced Installer Community
Zaheer Boovaji
Posts: 1
Joined: Mon Apr 29, 2013 1:38 am

setting up my database after i install MySQL as prerequisit

Hi,....

I have made an Desktop Application using java swings and MySQL as the database i have tried making an installer for it
I have packaged MySQL 5.0 set up as the Prerequisite and My Java Application everything works great, It is installing the MySQL 5.0 and my Application
Now i am not getting how can i pass my Database i mean how can i create tables and stored procedures and some insert statements into the installed MySQL 5.0 on my Customers Machine using Advanced Installer....

That is my customer should have all the things set up even my database when he installs with Advanced Installer

Please Help with the Issue
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: setting up my database after i install MySQL as prerequ

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can use our "SQL Scripts" support. Please take a look on our "Using SQL Scripts" article.

Also, here's a list of articles you can follow:
- Configure most common SQL connections
- ODBC/SQL how to's

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Thamizhmalar
Posts: 2
Joined: Tue May 13, 2014 8:20 am

Re: setting up my database after i install MySQL as prerequ

Hello All,

I'm newbie to Adavanced Installar.
Can you please help me in installing MYsql as prequistic in silent mode and start the mysql service.

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: setting up my database after i install MySQL as prerequ

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Please take a look on our "Install and configure mysql" thread which debates the same topic. If you have any questions/doubts let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Thamizhmalar
Posts: 2
Joined: Tue May 13, 2014 8:20 am

Re: setting up my database after i install MySQL as prerequ

Hi

Thank you for reply.

Now my doubt how to create service to work for both 32 bit and 64-bit architecture. Since mysqld path may vary for each architecture. How to set the path to mysqld
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: setting up my database after i install MySQL as prerequ

Hello,

In order to achieve what you want you can use a folder property to specify the MySQL installation path. For example, you can add in the "Install Command Lines" fields of your prerequisite a command line like this:

Code: Select all

/qn INSTALLDIR=[ProgramFilesFolder]MySQL
Then, you can edit the "File Path" field of your "Launch EXE with working directory" custom action like this:

Code: Select all

[ProgramFilesFolder]MySQL\bin\mysqld --install
Let us know if this helped, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”