Skip to content

Commit

Permalink
Revert "[Windows] download MySQL from SA (actions#6769)"
Browse files Browse the repository at this point in the history
This reverts commit 3334c52.
  • Loading branch information
vpolikarpov-akvelon authored Jun 16, 2023
1 parent fea6530 commit cc50a52
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions images/win/scripts/Installers/Install-MysqlCli.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ Install-Binary -Url $InstallerURI -Name $InstallerName -ArgumentList $ArgumentLi
[version]$MysqlVersion = (Get-ToolsetContent).mysql.version
$MysqlVersionMajorMinor = $MysqlVersion.ToString(2)

# Temporary move to SA as Oracle's site is unavailable
if (Test-IsWin19) {
$MysqlVersionUrl = "https://githubpackercipoolmysql.blob.core.windows.net/mysql/mysql-5.7.40-winx64.zip"
$MysqlVersionFull = "5.7.40"
} elseif (Test-IsWin22) {
$MysqlVersionUrl = "https://githubpackercipoolmysql.blob.core.windows.net/mysql/mysql-8.0.31-winx64.zip"
$MysqlVersionFull = "8.0.31"
if ($MysqlVersion.Build -lt 0) {
$MysqlVersion = (Invoke-RestMethod -Uri "https://dev.mysql.com/downloads/mysql/${MysqlVersionMajorMinor}.html" |
Select-String -Pattern "${MysqlVersionMajorMinor}\.\d+").Matches.Value
}

$MysqlVersionFull = $MysqlVersion.ToString()
$MysqlVersionUrl = "https://dev.mysql.com/get/Downloads/MySQL-${MysqlVersionMajorMinor}/mysql-${MysqlVersionFull}-winx64.zip"

$MysqlArchPath = Start-DownloadWithRetry -Url $MysqlVersionUrl -Name "mysql.zip"

# Expand the zip
Expand Down

0 comments on commit cc50a52

Please sign in to comment.