Welcome to the Chocolatey Community Package Repository! The packages found in this section of the site are provided, maintained, and moderated by the community.
Moderation
Every version of each package undergoes a rigorous moderation process before it goes live that typically includes:
- Security, consistency, and quality checking
- Installation testing
- Virus checking through VirusTotal
- Human moderators who give final review and sign off
More detail at Security and Moderation.
Organizational Use
If you are an organization using Chocolatey, we want your experience to be fully reliable. Due to the nature of this publicly offered repository, reliability cannot be guaranteed. Packages offered here are subject to distribution rights, which means they may need to reach out further to the internet to the official locations to download files at runtime.
Fortunately, distribution rights do not apply for internal use. With any edition of Chocolatey (including the free open source edition), you can host your own packages and cache or internalize existing community packages.
Disclaimer
Your use of the packages on this site means you understand they are not supported or guaranteed in any way. Learn more...

Downloads:
170,761
Downloads of v 8.0.23:
894
Last Update:
18 Jan 2021
Package Maintainer(s):
Software Author(s):
- Oracle Corporation and/or its affiliates
Tags:
mysql database admin
MySQL (Community Server)
Downloads:
170,761
Downloads of v 8.0.23:
894
Maintainer(s):
Software Author(s):
- Oracle Corporation and/or its affiliates
Edit Package
To edit the metadata for a package, please upload an updated version of the package.
Chocolatey's Community Package Repository currently does not allow updating package metadata on the website. This helps ensure that the package itself (and the source used to build the package) remains the one true source of package metadata.
This does require that you increment the package version.
All Checks are Passing
2 Passing Test
To install MySQL (Community Server), run the following command from the command line or from PowerShell:
To upgrade MySQL (Community Server), run the following command from the command line or from PowerShell:
To uninstall MySQL (Community Server), run the following command from the command line or from PowerShell:
NOTE: This applies to both open source and commercial editions of Chocolatey.
1. Ensure you are set for organizational deployment
Please see the organizational deployment guide
2. Get the package into your environment-
Open Source or Commercial:
- Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
- You can also just download the package and push it to a repository Download
-
Open Source
- Download the Package Download
- Follow manual internalization instructions
-
Package Internalizer (C4B)
- Run
choco download mysql --internalize --source=https://chocolatey.org/api/v2
(additional options) - Run
choco push --source="'http://internal/odata/repo'"
for package and dependencies - Automate package internalization
- Run
3. Enter your internal repository url
(this should look similar to https://chocolatey.org/api/v2)
4. Choose your deployment method:
choco upgrade mysql -y --source="'STEP 3 URL'" [other options]
See options you can pass to upgrade.
See best practices for scripting.
Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.
If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:
choco upgrade mysql -y --source="'STEP 3 URL'"
$exitCode = $LASTEXITCODE
Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
Exit 0
}
Exit $exitCode
- name: Ensure mysql installed
win_chocolatey:
name: mysql
state: present
version: 8.0.23
source: STEP 3 URL
See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.
Coming early 2020! Central Managment Reporting available now! More information...
chocolatey_package 'mysql' do
action :install
version '8.0.23'
source 'STEP 3 URL'
end
See docs at https://docs.chef.io/resource_chocolatey_package.html.
Chocolatey::Ensure-Package
(
Name: mysql,
Version: 8.0.23,
Source: STEP 3 URL
);
Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.
cChocoPackageInstaller mysql
{
Name = 'mysql'
Ensure = 'Present'
Version = '8.0.23'
Source = 'STEP 3 URL'
}
Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.
package { 'mysql':
provider => 'chocolatey',
ensure => '8.0.23',
source => 'STEP 3 URL',
}
Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.
salt '*' chocolatey.install mysql version="8.0.23" source="STEP 3 URL"
See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.
5. If applicable - Chocolatey configuration/installation
See infrastructure management matrix for Chocolatey configuration elements and examples.
Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...
This package was approved as a trusted package on 18 Jan 2021.
MySQL Community Edition is the freely downloadable version of the world's most popular open source database. It is available under the GPL license and is supported by a huge and active community of open source developers.
Please Note: This is an automatically updated package. If you find it is
out of date by more than a day or two, please contact the maintainer(s) and
let them know the package is no longer updating correctly.
Package Parameters
The package accepts the following optional parameters:
/installLocation
- filesystem location for mysql binaries/dataLocation
- filesystem location for mysql data/port
- numberic TCP listening port/serviceName
- custom name for the Windows services entry
Example: choco install mysql --params "/port:3307 /serviceName:AltSQL"
$ErrorActionPreference = 'Stop';
$url = 'https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.23-winx64.zip'
$checksum = ''
$checksumType = ''
$pp = Get-PackageParameters
$packageName = 'mysql'
$binRoot = if ($pp.installLocation) { $pp.installLocation } else { Get-ToolsLocation }
$installDir = Join-Path $binRoot "$packageName"
$installDirBin = "$($installDir)\current\bin"
Write-Host "Adding `'$installDirBin`' to the path and the current shell path"
Install-ChocolateyPath "$installDirBin"
$env:Path = "$($env:Path);$($installDirBin)"
$port = if ($pp.Port) { $pp.Port } else { 3306 }
$serviceName = if ($pp.serviceName) { $pp.serviceName } else { "MySQL" }
$dataDir = if ($pp.dataLocation) { Join-Path $pp.dataLocation "$packageName" } else { "C:\ProgramData\MySQL" }
if (![System.IO.Directory]::Exists($installDir)) { [System.IO.Directory]::CreateDirectory($installDir) | Out-Null }
$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $installDir
url64 = $url
checksum64 = $checksum
checksumType64 = $checksumType
}
Install-ChocolateyZipPackage @packageArgs
# find the unpack directory
$installedContentsDir = get-childitem $installDir -include 'mysql*' | Sort-Object -Property LastWriteTime -Desc | Select-Object -First 1
# shut down service if running
try {
write-host "Shutting down MySQL if it is running"
Start-ChocolateyProcessAsAdmin "cmd /c NET STOP $serviceName"
Start-ChocolateyProcessAsAdmin "cmd /c sc delete $serviceName"
}
catch {
# no service installed
}
# delete current bin directory contents
if ([System.IO.Directory]::Exists("$installDirBin")) {
Write-Host "Clearing out the contents of `'$installDirBin`'."
Start-Sleep 3
[System.IO.Directory]::Delete($installDirBin, $true)
}
# copy the installed directory into the current dir
Write-host "Copying contents of `'$installedContentsDir`' to `'$($installDir)\current`'."
[System.IO.Directory]::CreateDirectory("$installDirBin") | Out-Null
Copy-Item "$($installedContentsDir)\*" "$($installDir)\current" -Force -Recurse
$iniFileDest = "$($installDir)\current\my.ini"
if (!(Test-Path($iniFileDest))) {
Write-Host "No existing my.ini. Creating default '$iniFileDest' with default locations for datadir."
@"
[mysqld]
basedir=$($installDir.Replace("\","\\"))\\current
datadir=$($dataDir.Replace("\","\\"))\\data
port=$port
"@ | Out-File $iniFileDest -Force -Encoding ASCII
}
# initialize everything
# https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html
Write-Host "Initializing MySQL if it hasn't already been initialized."
try {
$defaultDataDir = Join-Path $dataDir "data"
if (![System.IO.Directory]::Exists($defaultDataDir)) { [System.IO.Directory]::CreateDirectory($defaultDataDir) | Out-Null }
Start-ChocolateyProcessAsAdmin "cmd /c '$($installDirBin)\mysqld' --defaults-file='$iniFileDest' --initialize-insecure"
}
catch {
write-host "MySQL has already been initialized"
}
# install the service itself
write-host "Installing the mysql service"
Start-ChocolateyProcessAsAdmin "cmd /c '$($installDirBin)\mysqld' --install $serviceName"
# turn on the service
Start-ChocolateyProcessAsAdmin "cmd /c NET START $serviceName"
Log in or click on link to see number of positives.
- log4net.dll (ce6ee4fdc783) - ## / 69
- MarkdownSharp.dll (6d2e1277659d) - ## / 68
- System.Reactive.Core.dll (ac464ea84539) - ## / 69
- System.Reactive.Interfaces.dll (c86b4625d3a3) - ## / 69
- System.Reactive.Linq.dll (21fad2983b4b) - ## / 70
- Microsoft.Data.Edm.dll (a04d4a6da9f9) - ## / 70
- Microsoft.Data.OData.dll (7d9765782e16) - ## / 73
- Microsoft.Data.Services.Client.dll (613fd0cf108e) - ## / 71
- System.Spatial.dll (413713f6735d) - ## / 73
- Octokit.dll (df60295b33fc) - ## / 69
- EnsureThat.dll (c04b30d5b912) - ## / 68
- MarkdownMailer.dll (5be8e1e337e5) - ## / 57
- NuGet.Core.dll (1e2d22abbb0d) - ## / 72
- Reactive.EventAggregator.dll (781bfe61e511) - ## / 72
- SimpleInjector.dll (48ea0cff5ad1) - ## / 57
- $RKEVJF3.dll (b2cf369f91fa) - ## / 66
- Microsoft.Data.Edm.resources.dll (a8486c3666a3) - ## / 72
- Microsoft.Data.OData.resources.dll (0ad671f86095) - ## / 71
- Microsoft.Data.Services.Client.resources.dll (9d112fdec5df) - ## / 69
- System.Spatial.resources.dll (e57f90474407) - ## / 73
- Microsoft.Data.Edm.resources.dll (f6ecfe8e463c) - ## / 73
- Microsoft.Data.OData.resources.dll (ae5abbe12320) - ## / 73
- Microsoft.Data.Services.Client.resources.dll (c3fe246cae45) - ## / 71
- System.Spatial.resources.dll (452878927952) - ## / 72
- Microsoft.Data.Edm.resources.dll (d94d0b029a5a) - ## / 72
- Microsoft.Data.OData.resources.dll (be4d7039eab9) - ## / 72
- Microsoft.Data.Services.Client.resources.dll (166d47080633) - ## / 73
- System.Spatial.resources.dll (1401b05a932a) - ## / 73
- Microsoft.Data.Edm.resources.dll (b75d43fc9f7a) - ## / 73
- Microsoft.Data.OData.resources.dll (1963d3cf728b) - ## / 72
- Microsoft.Data.Services.Client.resources.dll (2ab4b541c570) - ## / 70
- System.Spatial.resources.dll (751a79b209a5) - ## / 70
- Microsoft.Data.Edm.resources.dll (f006a90bf1b8) - ## / 71
- Microsoft.Data.OData.resources.dll (1317d66fe5a7) - ## / 72
- Microsoft.Data.Services.Client.resources.dll (ca958429c52c) - ## / 71
- System.Spatial.resources.dll (eb6e32edcef8) - ## / 72
- Microsoft.Data.Edm.resources.dll (ab4d5ac77cd3) - ## / 71
- Microsoft.Data.OData.resources.dll (a753b0a32e3c) - ## / 72
- Microsoft.Data.Services.Client.resources.dll (dfaa28a14963) - ## / 73
- System.Spatial.resources.dll (6e7faf1bafb2) - ## / 72
- Microsoft.Data.Edm.resources.dll (d140ffdc5b9f) - ## / 72
- Microsoft.Data.OData.resources.dll (b565565c3f79) - ## / 72
- Microsoft.Data.Services.Client.resources.dll (a12123ab1db7) - ## / 67
- System.Spatial.resources.dll (efaf019791f2) - ## / 69
- Microsoft.Data.Edm.resources.dll (8f9732000182) - ## / 72
- Microsoft.Data.OData.resources.dll (cbd8d3354aba) - ## / 68
- Microsoft.Data.Services.Client.resources.dll (2b9e84b146c8) - ## / 68
- System.Spatial.resources.dll (9b3744442555) - ## / 73
- Microsoft.Data.Edm.resources.dll (64e57ed239ce) - ## / 71
- Microsoft.Data.OData.resources.dll (3b1684ac6db2) - ## / 71
- Microsoft.Data.Services.Client.resources.dll (456478803b50) - ## / 72
- System.Spatial.resources.dll (ff93d6bcdcb1) - ## / 73
- $RG49G7A.dll (732ae2c31083) - ## / 69
- package-verifier.exe (524767593d29) - ## / 71
- $I8F03B5.zip (6dc3e6111ee3) - ## / 58
- $IG49G7A.dll (2d935771790f) - ## / 58
- $IKEVJF3.dll (f9a29ac5fa59) - ## / 58
- $R8F03B5.zip (7d092fa08cf8) - ## / 64
- AWSSDK.dll (9bdb43b2357c) - ## / 46
- chocolatey.package.verifier.dll (4d44b08d7573) - ## / 68
- package-verifier.exe (0b33db4a3d87) - ## / 71
- mysql.8.0.23.nupkg (47dbba56e357) - ## / 62
- mysql-8.0.23-winx64.zip (aab309e01374) - ## / 58
In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).
Chocolatey Pro provides runtime protection from possible malware.
Version | Downloads | Last Updated | Status |
---|---|---|---|
MySQL (Community Server) 8.0.23 | 894 | Monday, January 18, 2021 | Approved |
MySQL (Community Server) 8.0.22 | 5419 | Tuesday, October 20, 2020 | Approved |
MySQL (Community Server) 8.0.21 | 6591 | Monday, July 13, 2020 | Approved |
MySQL (Community Server) 8.0.20 | 5570 | Monday, April 27, 2020 | Approved |
MySQL (Community Server) 8.0.19 | 8849 | Monday, January 13, 2020 | Approved |
MySQL (Community Server) 8.0.18 | 5512 | Monday, October 14, 2019 | Approved |
MySQL (Community Server) 8.0.17 | 9313 | Monday, July 22, 2019 | Approved |
MySQL (Community Server) 8.0.16.20190513 | 3825 | Monday, May 13, 2019 | Approved |
MySQL (Community Server) 8.0.16 | 2391 | Thursday, April 25, 2019 | Approved |
MySQL (Community Server) 8.0.15 | 4038 | Saturday, February 2, 2019 | Approved |
MySQL (Community Server) 8.0.14 | 1064 | Monday, January 21, 2019 | Approved |
MySQL (Community Server) 8.0.13 | 1621 | Thursday, December 27, 2018 | Approved |
MySQL (Community Server) 5.7.18 | 59887 | Monday, April 10, 2017 | Approved |
MySQL (Community Server) 5.7.17 | 13643 | Monday, December 12, 2016 | Approved |
MySQL (Community Server) 5.7.16 | 3171 | Wednesday, October 12, 2016 | Approved |
MySQL (Community Server) 5.7.15 | 1619 | Tuesday, September 6, 2016 | Approved |
MySQL (Community Server) 5.7.14 | 8226 | Friday, July 29, 2016 | Approved |
MySQL (Community Server) 5.7.13 | 931 | Thursday, June 2, 2016 | Approved |
MySQL (Community Server) 5.7.12 | 881 | Monday, April 11, 2016 | Approved |
MySQL (Community Server) 5.7.11.20160317 | 899 | Thursday, March 17, 2016 | Approved |
MySQL (Community Server) 5.7.11 | 1102 | Friday, February 5, 2016 | Approved |
MySQL (Community Server) 5.7.10.20151209 | 903 | Wednesday, December 9, 2015 | Approved |
MySQL (Community Server) 5.7.10 | 448 | Monday, December 7, 2015 | Approved |
MySQL (Community Server) 5.7.9.20151029 | 741 | Thursday, October 29, 2015 | Approved |
MySQL (Community Server) 5.7.9 | 486 | Wednesday, October 21, 2015 | Approved |
MySQL (Community Server) 5.6.27 | 1279 | Wednesday, September 30, 2015 | Approved |
MySQL (Community Server) 5.6.26 | 1579 | Friday, July 24, 2015 | Approved |
MySQL (Community Server) 5.6.25.20150611 | 885 | Thursday, June 11, 2015 | Approved |
MySQL (Community Server) 5.6.25 | 591 | Saturday, May 30, 2015 | Approved |
MySQL (Community Server) 5.6.24 | 1023 | Tuesday, April 7, 2015 | Approved |
MySQL (Community Server) 5.6.23 | 1444 | Monday, February 2, 2015 | Approved |
MySQL (Community Server) 5.6.21 | 2089 | Wednesday, September 24, 2014 | Approved |
MySQL (Community Server) 5.6.20 | 871 | Friday, August 1, 2014 | Approved |
MySQL (Community Server) 5.6.19 | 582 | Friday, July 18, 2014 | Approved |
MySQL (Community Server) 5.6.15 | 1455 | Tuesday, December 3, 2013 | Approved |
MySQL (Community Server) 5.6.14 | 710 | Friday, September 20, 2013 | Approved |
MySQL (Community Server) 5.6.13 | 600 | Wednesday, July 31, 2013 | Approved |
MySQL (Community Server) 5.6.12.20130618 | 561 | Tuesday, June 18, 2013 | Approved |
MySQL (Community Server) 5.6.12.20130608 | 464 | Saturday, June 8, 2013 | Approved |
MySQL (Community Server) 5.6.12 | 654 | Tuesday, June 4, 2013 | Approved |
MySQL (Community Server) 5.6.11 | 558 | Friday, May 24, 2013 | Approved |
MySQL (Community Server) 5.5.30 | 1090 | Monday, February 4, 2013 | Approved |
MySQL (Community Server) 5.5.29 | 484 | Friday, December 21, 2012 | Approved |
MySQL (Community Server) 5.5.28 | 553 | Saturday, September 29, 2012 | Approved |
MySQL (Community Server) 5.5.27 | 457 | Monday, August 6, 2012 | Approved |
MySQL (Community Server) 5.5.25.20120706 | 372 | Friday, July 6, 2012 | Approved |
MySQL (Community Server) 5.5.25 | 587 | Sunday, June 3, 2012 | Approved |
MySQL (Community Server) 5.5.24 | 500 | Sunday, May 27, 2012 | Approved |
MySQL (Community Server) 5.5.22 | 477 | Wednesday, April 11, 2012 | Approved |
MySQL (Community Server) 5.5.21 | 482 | Saturday, February 25, 2012 | Approved |
MySQL (Community Server) 5.5.20 | 430 | Sunday, January 22, 2012 | Approved |
MySQL (Community Server) 5.5.19 | 468 | Saturday, December 17, 2011 | Approved |
MySQL (Community Server) 5.5.18 | 451 | Tuesday, November 29, 2011 | Approved |
MySQL (Community Server) 5.5.14.1 | 498 | Tuesday, August 23, 2011 | Approved |
MySQL (Community Server) 5.5.13 | 543 | Tuesday, August 23, 2011 | Approved |
Oracle Corporation and/or its affiliates
-
- vcredist2015 (≥ 14.0.24215.20170201)
Ground Rules:
- This discussion is only about MySQL (Community Server) and the MySQL (Community Server) package. If you have feedback for Chocolatey, please contact the Google Group.
- This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
- The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
- Tell us what you love about the package or MySQL (Community Server), or tell us what needs improvement.
- Share your experiences with the package, or extra configuration or gotchas that you've found.
- If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.