Navigation Menu

Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Commit

Permalink
check IsRunning mysqld
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmo0920 committed Aug 13, 2014
1 parent 0bc4cd8 commit 46369c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion powershell/install-mroonga.ps1
Expand Up @@ -8,7 +8,11 @@ cd $workDir
function mrnInstall($mariadbVer, $arch, $installSqlDir) {
cd "mariadb-$mariadbVer-$arch"
cmd /c "start .\bin\mysqld.exe"
Start-Sleep -m 500
do
{
$Running = Get-Process mysqld -ErrorAction SilentlyContinue
Start-Sleep -m 500
} while (!$Running)
cmd /c ".\bin\mysql.exe -uroot <$installSqlDir\install.sql"
cmd /c ".\bin\mysqladmin.exe -uroot shutdown"
cd ..
Expand Down

0 comments on commit 46369c3

Please sign in to comment.