Search Intent: What These Two Queries Mean
The queries winget install oracle.mysql and "oracle.mysql" winget usually point to the same practical need: install MySQL on Windows using Windows Package Manager, while confirming that Oracle.MySQL is the correct package ID.
Direct answer: use winget install --id Oracle.MySQL --exact when you want a clear, repeatable MySQL installation command for Windows.
Command query
A user already knows the command shape and wants a copyable install command plus what to do after installation.
Package ID query
A user wants to verify the WinGet package name, compare it with search results, or use it in automation scripts.
1. Verify the MySQL Package ID
Start by searching for the package. The important value is the ID, not just the display name.
winget search mysql
winget show Oracle.MySQL
For a scriptable install, use the exact ID flag so WinGet does not match another MySQL-related package by substring.
winget install --id Oracle.MySQL --exact
Note: WinGet package IDs are usually case-insensitive in day-to-day use, but writing the canonical ID as Oracle.MySQL makes scripts easier to audit and compare against package metadata.
2. Install MySQL with WinGet
Open Windows Terminal or PowerShell. For a normal interactive setup, run:
winget install Oracle.MySQL
For repeatable setup scripts, prefer a more explicit command:
winget install --id Oracle.MySQL --exact --source winget
If the installer needs administrator permissions, rerun the terminal as Administrator. If you need to see every installer step, add interactive mode:
winget install --id Oracle.MySQL --exact --interactive
3. Verify MySQL After Installation
After installation, open a new terminal so the PATH environment variable is refreshed, then check the client version.
mysql --version
If Windows cannot find mysql, check the installation directory and add the MySQL bin folder to PATH.
$env:Path -split ';' | Select-String -Pattern 'MySQL'
Connect to the local server:
mysql -u root -p
4. Common WinGet Problems
No package found
winget source update
winget search --id Oracle.MySQL --exact
Refresh the WinGet source, then search by ID again.
Multiple MySQL results
winget install --id Oracle.MySQL --exact
Use --id and --exact so WinGet installs Oracle's MySQL package rather than a connector, shell, or third-party package.
Installer does not show configuration screens
winget install --id Oracle.MySQL --exact --interactive
Interactive mode is useful when you need to pick installer options instead of accepting the default flow.
5. Quick Reference
| Need | Command |
|---|---|
| Search package | winget search mysql |
| Show package metadata | winget show Oracle.MySQL |
| Install by exact ID | winget install --id Oracle.MySQL --exact |
| Verify MySQL client | mysql --version |
Loading comments...