MySQL environment variable configuration for windows

Published: 27 September 2024
on channel: 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.


Watch video MySQL environment variable configuration for windows online without registration, duration hours minute second in high quality. This video was added by user InfoAlias 27 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2 once and liked it people.