Simple DOS command operation database

Source: Internet
Author: User

Simple DOS command operation database

Start service: NET start database service name

Shutdown Service: net stop database service name

Connection database: Mysql-u user name-p password

Show databases--show all the libraries in the server

Show tables; --Show all the tables in the library

SELECT * from table name; Querying all data in a specified table

Build Library:

Syntax: CREATE database name DEFAULT charset= ' UTF8 ';

Using libraries:

Syntax: use database name;

Use database name--Select the database to be used

To delete a library:

Syntax: DROP database name;

Added: INSERT into table name (column name 1, column name 2, column name 3,.....) VALUES (column name 1 value, column name 2 value, column name 3 value,...);

Insert into table name values (column name 1 value, column name 2 value, column name 3 value); In the following values, you must write the value of all the column names in this table.

Quit--Exits the current connection

Simple DOS command operation database

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: 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.