I have been reading through a lot of documents on Stack Overflow, you guys are great! I have taken some code that was suggested on another post. The help was great! I was ab
After you installed MySQL and got it started, it´s easy to load an MySQL Script file.
The keypoint is passing the command "source" to mysql.exe -e parameter, so it could load the script file. Passing script name with "<" signal didn´t work for me.
[Files]
Source: "script.sql"; DestDir: "{tmp}"; Flags: deleteafterinstall;
[Run]
Filename: "{reg:HKLM\SOFTWARE\MySQL AB\MySQL Server 5.6,Location}\bin\mysql.exe"; \
Parameters: "-u root -prootpassword -e ""source {tmp}\script.sql"""; \
StatusMsg: "Loading MySQL Database Initial Data"; \
Flags: runhidden waituntilterminated;