Skip to content
⌘ NSIS Forum Archive

setting root pwd for mysql

2 posts

javnav07#

setting root pwd for mysql

Hi

I am generating the installer for my appliation.
I am installing the mysql with myapplication without any configuration wizard.So the password for root account will not be created.
I am able to set password for root account in cmd window using the following :
"c:\MySQL5.0\bin\mysql.exe" --user=root -e "SET PASSWORD=PASSWORD('root')"

In NsiS i have wrritten like :

nsExec::ExecToLog "$INSTDIR\MySQL5.0\bin\mysql.exe" --user=root -e "SET PASSWORD=PASSWORD('root')"

It is not setting the password.

somebody please help

Thanks
Instructor#
nsExec::ExecToLog `"$INSTDIR\MySQL5.0\bin\mysql.exe" --user=root -e "SET PASSWORD=PASSWORD('root')"`
Pop $0