initialize DB - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

HRIT
Posts: 3
Joined: Tue Jun 27, 2006 7:22 am
Location: Singapore

initialize DB

hi all,
I have installed mysql through Advanced installer.. now i should be able to create db called myDB and also some default tables in it. is there any way to do this with advanced installer? how shud i create a default database and tables while installing my application?
thanks and regards,
Hrit
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

AI does not support directly to create a mySql db. But I you can try do this with a custom action.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
HRIT
Posts: 3
Joined: Tue Jun 27, 2006 7:22 am
Location: Singapore

hi,
i have a custom action in which i execute a batch file to initialize DB..

a batch file whose content is like:

mysqld-nt --install

NET START mysql


mysql -u root < E:\db.sql


first two lines are executed prooperly..(creating and starting mysql service)..
but for last line(importing mysql dump), i get error like
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)


can u help me to sort this problem?

regards,
Hrit
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please see this:
http://www.advancedinstaller.com/forums ... php?t=1324

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”