Skip to content

Commit

Permalink
mysql 5.5.21
Browse files Browse the repository at this point in the history
  • Loading branch information
ferventcoder committed Feb 25, 2012
1 parent a04c1d7 commit c89457c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion mysql/mysql.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<metadata>
<id>mysql</id>
<title>MySQL (Community Server)</title>
<version>5.5.20</version>
<version>5.5.21</version>
<authors>Oracle</authors>
<owners>Rob Reynolds</owners>
<summary>MySQL Community Server - The world's most popular open source database</summary>
Expand Down
18 changes: 4 additions & 14 deletions mysql/tools/chocolateyInstall.ps1
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
}
19 changes: 19 additions & 0 deletions mysql/tools/installmysql.ps1
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
}

0 comments on commit c89457c

Please sign in to comment.