command line login MySQL prompt ' MySQL ' is not an internal or external command

Source: Internet
Author: User

Issue: Command line login mysql prompt ' MySQL ' is not an internal or external command. As shown in 1.

Figure 1

Cause: The MySQL Bin folder is not configured in the environment variable area because the command line login MySQL needs to call the Mysql.exe file under Bin.

Workaround: Configure the MySQL Bin folder in the environment variable.

Computer Right--->[property]--> left [Advanced system settings]--> Click [Advanced]--> click [Environment variable], add the file path of the MySQL bin after the value of path in the system variable, my is [C:\Program files ( x86) \mysql\mysql Server 5.5\bin; ] (do not forget to separate the path with a semicolon). Ok. As shown in 2.

Figure 2

Re-open a command line input: Mysql-uname-p, enter after the Enter, if the below let input password, then, entered the correct password can enter MySQL. 3 is shown

Figure 3

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.