MySQL silent install and uninstall
Oracle MySQL Database Service is a fully managed database service that lets developers quickly develop and deploy secure, cloud native applications using the world’s most popular open source database.
- Vendor
- Oracle Corporation
- Category
- Developer Tools
- Installer
- Windows Installer (MSI, built with WiX)
- Architecture
- x64
- Checked version
- 8.4.9
- winget ID
Oracle.MySQL- Product code
{26CF3009-F5EA-4BB7-930F-3BC7814AAC17}- License
- GNU General Public License version 2
- Download
- Official download
Silent install
msiexec /i mysql-8.4.9-winx64.msi /qn /norestart CONSOLEARGS="install -type=Developer -silent" - Download the installer from the direct download link.
- Open an elevated Command Prompt: right-click Command Prompt and select Run as administrator.
- Change to the folder with the installer, for example
cd C:\Temp. - Run the command above. Adjust the file name if you downloaded a different version.
Or install with winget
winget install --id Oracle.MySQL --exact --silent --scope machine --accept-package-agreements --accept-source-agreements Silent uninstall
msiexec /x {26CF3009-F5EA-4BB7-930F-3BC7814AAC17} /qn /norestart winget uninstall --id Oracle.MySQL --exact --silent --accept-source-agreements Run the command from an elevated Command Prompt.
About the Windows Installer (MSI, built with WiX) installer
An MSI built with the WiX Toolset. It is installed with msiexec and accepts the standard MSI switches.
| Switch | What it does |
|---|---|
/qn | No user interface. |
/norestart | Never restart, even if the installation needs it. |
/l*v "C:\Temp\install.log" | Verbose log file. |
Deploy MySQL with Microsoft Intune
Package the installer as a Win32 app (.intunewin) and use these settings:
| Install command | msiexec /i mysql-8.4.9-winx64.msi /qn /norestart CONSOLEARGS="install -type=Developer -silent" |
|---|---|
| Uninstall command | msiexec /x {26CF3009-F5EA-4BB7-930F-3BC7814AAC17} /qn /norestart |
| Install behavior | System |
| Detection rule | MSI product code {26CF3009-F5EA-4BB7-930F-3BC7814AAC17} |