You must exercise great care when editing your system 手动编辑系统PATH
by hand; accidental deletion or modification of any portion of the existing PATH
value can leave you with a malfunctioning or even unusable system.PATH
时,您必须非常小心;意外删除或修改现有PATH
值的任何部分都可能导致系统出现故障甚至无法使用。
To make it easier to invoke MySQL programs, you can add the path name of the MySQL 为了更容易地调用MySQL程序,您可以将MySQL bin
directory to your Windows system PATH
environment variable:bin
目录的路径名添加到您的Windows系统PATH
环境变量中:
On the Windows desktop, right-click the My Computer icon, and select .在Windows桌面上,右键单击“我的电脑”图标,然后选择“属性”。
Next select the 接下来,从显示的“系统属性”菜单中选择“高级”选项卡,然后单击“环境变量”按钮。 tab from the menu that appears, and click the button.
Under System Variables, select , and then click the button. The dialogue should appear.在“系统变量”下,选择“路径”,然后单击“编辑”按钮。此时应出现编辑系统变量对话框。
Place your cursor at the end of the text appearing in the space marked Variable Value. (Use the End key to ensure that your cursor is positioned at the very end of the text in this space.) 将游标放在标记为“变量值”的空格中显示的文本的末尾。(使用End键确保游标位于该空间中文本的最后。)Then enter the complete path name of your MySQL 然后输入MySQL bin
directory (for example, C:\Program Files\MySQL\MySQL Server 8.0\bin
)bin
目录的完整路径名(例如,C:\Program Files\MySQL\MySQL Server 8.0\bin
)
There must be a semicolon separating this path from any values present in this field.必须用分号将此路径与此字段中存在的任何值分隔开。
Dismiss this dialogue, and each dialogue in turn, by clicking 单击“确定”,直到所有打开的对话都被取消,从而取消此对话,并依次取消每个对话。 until all of the dialogues that were opened have been dismissed. The new 新的PATH
value should now be available to any new command shell you open, allowing you to invoke any MySQL executable program by typing its name at the DOS prompt from any directory on the system, without having to supply the path. PATH
值现在应该可以用于您打开的任何新命令shell,允许您通过在DOS提示符下从系统上的任何目录键入任何MySQL可执行程序的名称来调用该程序,而无需提供路径。This includes the servers, the mysql client, and all MySQL command-line utilities such as mysqladmin and mysqldump.这包括服务器、mysql客户端和所有mysql命令行实用程序,如mysqladmin和mysqldump。
You should not add the MySQL 如果在同一台机器上运行多个MySQL服务器,则不应将MySQL bin
directory to your Windows PATH
if you are running multiple MySQL servers on the same machine.bin
目录添加到Windows PATH
中。