Command Line <mysql> is not an internal or external command troubleshooting method, mysql external command
First, make sure that you have not changed the installation directory of MySQL.
IfYou renamed or changed your pathTo change your path in the corresponding configuration file.
Find the C: \ Windows \ my. ini file, change the path of the file you configured, and change it to the path you modified.
- Modify the service path.
If your MySQL path is changed, the MySQL service cannot be started. PressWin + R key, enter services. mscCheck whether the path is correct.
- If the registration list is incorrectly opened,Press win + R and enter regedit to open the registration list.
Locate: HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services
- If you have not modified the path, check whether the environment variable is configured.
Right-click computer -- properties -- advanced system settings.
- Select the environment variable and enter your MySQL path under the path in the environment variable. Note that if your user environment variables also contain path, you should also enter it.
- After environment variables are configured, you may needRun as an administrator to use the MySQL database normally.Generally, this is not required.