Mysql based on DOS command line login operation example (graphic description) [Original]_mysql

Source: Internet
Author: User
Tags mysql commands

This article describes the MySQL based on DOS command line login operation method. Share to everyone for your reference, specific as follows:

The common MySQL command-line login statements are as follows:

Copy Code code as follows:
Mysql-h Localhost-u root-p123456

which

-H indicates server address, can be omitted, the default represents the native server
-U indicates that the logged-on user, required, can be written with the user name, such as:-uroot
-P indicates a database password, which is required, but does not enter a password here (note: There can be no spaces between-p and the password on the command line)

Therefore, the above statements can be written in the following ways:

Mysql-u root-p123456
mysql-uroot-p123456
mysql-u root-p
mysql-uroot-p

The post-logon effect is shown in the following illustration:

Enter the SQL statement test as follows:

This shows a data table that goes into the database emcs72 and prints the database.

For more MySQL commands and applications, interested friends can refer to the previous "MySQL Command instance rollup"

I hope this article describes the design of MySQL database to help.

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.