MySQL environment variable configuration for windows

Опубликовано: 27 Сентябрь 2024
на канале: InfoAlias
20
2

To set an environment variable for MySQL, such as adding the MySQL binary path (mysql.exe) to the system's PATH environment variable, you can follow these steps using both the graphical interface and PowerShell script.

Method 1: Using the Graphical Interface (Windows)
Open System Properties:

Press Windows + R, type sysdm.cpl, and press Enter.
Go to the Advanced tab and click Environment Variables.
Set Environment Variable:

In the System Variables section, find the variable named Path and click Edit.
In the Edit Environment Variable dialog, click New, and then add the MySQL bin directory path (e.g., C:\Program Files\MySQL\MySQL Server 8.0\bin).
Click OK to close all windows.
Verify:
Open a new Command Prompt or PowerShell window and type mysql --version. It should display the installed MySQL version.


Смотрите видео MySQL environment variable configuration for windows онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь InfoAlias 27 Сентябрь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 20 раз и оно понравилось 2 людям.