How to quickly access mysql using cmd

Source: Internet
Author: User
Tags mysql commands
To access the mysql database using cmd, you must first enter the mysql directory to execute the MYSQL command, the following describes how to directly execute mysql commands in cmd!

To access the mysql database using cmd, you must first enter the mysql directory to execute the MYSQL command, the following describes how to directly execute mysql commands in cmd!

Take window7 as an example. Right-click "computer"-click "properties"-click "Advanced System settings"-click "environment variables". The following figure is displayed:

<> "Environment variables" in the lower right corner ".

<> Select "PATH" and edit.

<> The variable value is the address of the mysql command directory in the installation and development environment. OK.

OK. Now the configuration is complete. After Entering cmd, you can easily use the mysql command:

Mysql-u user-p password (Press ENTER)

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.