After downloading and installing MySQL 8.0.24 yesterday, I opened
a command shell. In the command shell, I could access the MySQL
Shell (mysqlsh.exe
) but not the MySQL Client
(mysql.exe
). Typing in the following:
C:\WINDOWS\system32>mysql
It returned:
'mysql' is not recognized as an internal or external command, operable program or batch file.
The MySQL Client (mysql.exe
) was installed because
MySQL Workbench relies on it. However, the MySQL Microsoft
Software Installer (MSI) does not put the mysql.exe
file’s directory in the common Windows %PATH%
variable. You can find the correct %PATH%
directory
variable by opening the File Manager and searching for
the mysql.exe
file.
You should return several directories and programs but the directory you want is:
C:\Program Files\MySQL\MySQL Server …[Read more]