Installing the classic MySQL command-line client on Windows 11 gives you a fast way to reach remote database servers for ad-hoc SQL, scripted checks, exports, and troubleshooting without setting up a full local server instance.
Oracle ships mysql.exe inside the MySQL Community Server Windows packages. The current downloads page offers both a product-specific .msi and a ZIP Archive for Microsoft Windows, but the ZIP Archive is the cleaner client-only path because it provides the classic client binaries without pushing you through local server configuration.
The Windows build is 64-bit only and depends on the Microsoft Visual C++ runtime. Adding the extracted bin directory to PATH makes mysql, mysqladmin, and mysqldump available in new terminals, but edit PATH carefully because removing existing entries can break other applications, and use the full path instead when the machine intentionally keeps multiple MySQL versions.
https://dev.mysql.com/downloads/mysql/
Oracle currently lists MySQL Community Server 9.7.0 LTS by default with files like mysql-9.7.0-winx64.zip; skip the debug-test archive. Use the ZIP Archive when you need the classic mysql.exe client without configuring a local server. Use the 8.4 LTS line instead only when the workstation must match an existing 8.4 server estate.
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
MySQL 9.7 requires the Microsoft Visual C++ 2019 Redistributable on Windows, and Microsoft now ships that runtime family through the current supported v14 package.
Avoid leaving the archive under Downloads or another temporary path if you plan to add MySQL to PATH.
Change the system Path only when every user on the machine needs MySQL and you have permission to make system-wide changes.
Do not replace existing Path entries. If the machine intentionally keeps multiple MySQL versions, skip the PATH change and run mysql.exe by full path instead.
PS> where.exe mysql C:\Tools\mysql-9.7.0-winx64\bin\mysql.exe
If where.exe mysql returns nothing, close and reopen the terminal before testing again.
PS> mysql --version mysql Ver 9.7.0 for Win64 on x86_64 (MySQL Community Server - GPL)
PS> mysql --host=db1.example.net --port=3306 --user=db_admin --password Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 12 Server version: 9.7.0 MySQL Community Server - GPL mysql>
Avoid --password=secret on the command line because it can leak through console history or process inspection.
Add --ssl-mode=REQUIRED when the server should refuse unencrypted client connections.
mysql> SELECT VERSION(); +-----------+ | VERSION() | +-----------+ | 9.7.0 | +-----------+ 1 row in set (0.00 sec)
mysql> exit Bye