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
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.
Entermysql -uroot -p
and then enter the password and you will be in
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!