MySQL Forums
Forum List  »  Install & Repo

Re: MySQL Silent Install
Posted by: Jim Manico
Date: February 12, 2009 05:45AM

David, I'm exactly where you are at now - what is your solution?

My second ExecWait (with the --init-file) hangs forever (but the SQL executes)
I think --init-file actually runs the server - I wonder how you setup the service to run the sql at startup... ?

I did, so far (using NSIS):

Section "MySQL Installation" SEC00921
#!if ${MYSQL}

ExecWait 'msiexec /i "c:\archive\software\mysql\installer\5.0.27-win32\mysql-essential-5.0.27-win32.msi" /quiet INSTALLDIR="C:\Program Files\MySQL\MySQL Server 5.0"'

#Delete these - necessary for cold install
Delete "C:\Program Files\MySQL\MySQL Server 5.0\data\ib_logfile0"
Delete "C:\Program Files\MySQL\MySQL Server 5.0\data\ib_logfile1"
Delete "C:\Program Files\MySQL\MySQL Server 5.0\data\ibdata1"

#ExecWait '"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt.exe" --install MySQL --defaults-file="c:\config\my.ini"'
#ExecWait '"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt.exe" --init-file="c:\config\mysql-init.txt"'
#ExecWait 'net start MySQL'

#!endif
SectionEnd

Options: ReplyQuote


Subject
Written By
Posted
March 12, 2007 02:20PM
Re: MySQL Silent Install
February 12, 2009 05:45AM
February 12, 2009 08:12AM
September 10, 2008 07:55PM
February 12, 2009 03:48PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.