The error "mysql is not an internal command" occurs because the mysql bin directory path is not added to the environment variable Solution: Open the computer's environment variables, select system variables, open Path, and add the mysql bin directory path. Here is an example: Before adding environment variables Add environment variables After adding the environment variables, restart mysql Content extension: I used to use visual tools to call the database, but today I suddenly found out using the command line: mysql' is not recognized as an internal or external command, operable program or batch file. After some trouble, I found what was wrong and shared it with you. Note 1: First check whether the environment variable has been added to the path
Then create a new MySQL installation path/bin path, for example, mine is C:\Program Files\MySQL\MySQL Server 5.5\bin , just add it in. Finally, make sure to remember to add the bin directory. I didn’t write this, I only added the installation directory, so I couldn’t find it. Note 2: Be sure to run the command line as an administrator The commonly used command line opening method is window key + R key, but this is not run as an administrator How to open the command line as an administrator: Method 1: Right-click the window in the lower right corner of the computer -----> Search Method 2: Right-click the window in the lower right corner of the computer -----> Window PowerShell (Administrator) After that, enter mysql -u account -p password, and the following will appear. The above is the detailed solution to the error "mysql is not an internal command". For more information on how to deal with the error "mysql is not an internal command", please pay attention to other related articles on 123WORDPRESS.COM! |
<<: Nginx uses the Gzip algorithm to compress messages
>>: Examples of correct use of interface and type methods in TypeScript
The installation of MySQL 8.0.12 took two days an...
Table of contents Process Communication Bidirecti...
The default storage directory of mysql is /var/li...
Table of contents Preface What is a filter How to...
introduction With the widespread popularity of In...
1. Preparation Install Tomcat on Linux system, us...
If you have a choice, you should use UTF-8 In fac...
Correct answer Using useRouter : // router path: ...
MySQL Boolean value, stores false or true In shor...
Tip: The following operations are all performed u...
NextCloud You can share any files or folders on y...
The first type: full CSS control, layer floating ...
Latest solution: -v /usr/share/zoneinfo/Asia/Shan...
For a website, it is the most basic function. So l...
The problem raised in the title can be broken dow...