Home  >  Article  >  Database  >  mysql is not recognized as an internal or external command, operable program or batch file

mysql is not recognized as an internal or external command, operable program or batch file

藏色散人
藏色散人Original
2020-02-17 10:29:2869321browse

mysql is not recognized as an internal or external command, operable program or batch file

mysql is not recognized as an internal or external command, operable program or batch file?

(Free learning video tutorial recommendation: mysql video tutorial)

Troubleshoot the reasons in order

1.**The first may be environment variables Not configured properly. **cmd command line requires environment variables.

Right-click on My Computer – Advanced System Settings – Environment Variables – System Variables – Path (click to add MySQL’s bin directory)

My bin directory here is

mysql is not recognized as an internal or external command, operable program or batch file

mysql is not recognized as an internal or external command, operable program or batch file

After adding.

2 Start cmd. Note that you need to start it as an administrator.

Enter cmd, right click – run as administrator.

cd jumps to the bin directory.

mysql is not recognized as an internal or external command, operable program or batch file

Enter mysql -uroot -p

and then enter the password and you will be in

mysql is not recognized as an internal or external command, operable program or batch file

For more programming-related learning, please pay attention to the php Chinese websiteIntroduction to ProgrammingVideo Tutorial Channel!

The above is the detailed content of mysql is not recognized as an internal or external command, operable program or batch file. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn