-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a04c1d7
commit c89457c
Showing
3 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,9 @@ | ||
try { | ||
Install-ChocolateyPackage 'mysql' 'msi' '/passive' 'http://www.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.20-win32.msi/from/http://mysql.he.net/' 'http://www.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.20-winx64.msi/from/http://mysql.he.net/' | ||
|
||
#------- ADDITIONAL SETUP -------# | ||
#add it to the path | ||
$mysqlPath = "$env:SystemDrive\Program Files\MySQL\MySQL Server 5.5\bin" | ||
if (![System.IO.Directory]::Exists($mysqlPath)) {$mysqlPath = "$env:SystemDrive\Program Files (x86)\MySQL\MySQL Server 5.5\bin";} | ||
Install-ChocolateyPath $mysqlPath 'Machine' | ||
try { | ||
$toolsDir ="$(Split-Path -parent $MyInvocation.MyCommand.Definition)" | ||
Start-ChocolateyProcessAsAdmin "& $($toolsDir)\installmysql.ps1" | ||
|
||
#install the service itself | ||
Start-Process -FilePath "$mysqlPath\mysqld" -ArgumentList '--install' -Wait -NoNewWindow | ||
#turn on the service | ||
Start-Process -FilePath "NET" -ArgumentList 'START MySQL' -Wait -NoNewWindow | ||
|
||
Write-ChocolateySuccess 'mysql' | ||
} catch { | ||
Write-ChocolateyFailure 'mysql' $($_.Exception.Message) | ||
Write-ChocolateyFailure 'mysql' "$($_.Exception.Message)" | ||
throw | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
try { | ||
Install-ChocolateyPackage 'mysql' 'msi' '/passive' 'http://www.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.21-win32.msi/from/http://mysql.he.net/' 'http://www.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.21-winx64.msi/from/http://mysql.he.net/' | ||
|
||
#------- ADDITIONAL SETUP -------# | ||
#add it to the path | ||
$mysqlPath = "$env:SystemDrive\Program Files\MySQL\MySQL Server 5.5\bin" | ||
if (![System.IO.Directory]::Exists($mysqlPath)) {$mysqlPath = "$env:SystemDrive\Program Files (x86)\MySQL\MySQL Server 5.5\bin";} | ||
Install-ChocolateyPath $mysqlPath 'Machine' | ||
|
||
#install the service itself | ||
Start-Process -FilePath "$mysqlPath\mysqld" -ArgumentList '--install' -Wait -NoNewWindow | ||
#turn on the service | ||
Start-Process -FilePath "NET" -ArgumentList 'START MySQL' -Wait -NoNewWindow | ||
|
||
Write-ChocolateySuccess 'mysql' | ||
} catch { | ||
Write-ChocolateyFailure 'mysql' $($_.Exception.Message) | ||
throw | ||
} |