Backing Up the database

Source: Internet
Author: User

Backup Database:(outside of the MySQL service execution )

mysqldump - H server address-u login name-P The name of the database to be backed up > the file to save as

To recover a database:

mysql-h server address-u login name-P port number-p database name < file name

Note: Typically the database name needs to be established first (present):

Basic Grammar Rules

Single-line comment: # Comment Content

Single-line comment: --note content (Note thatthere is a space after two "--")

Multiline Comment:/ * Comment content * /

statement Terminator

Default is semicolon (English)

You can also set the command to:delimiter

form:delimiter new symbol (can be multiple characters)

Then after this statement, the new set of symbols is used to end a statement.

naming rules in the database

MySQL itself is case insensitive.

However, in some case-sensitive operating systems, the database name and table name are case sensitive.

It is recommended to use "underline naming" to name various identifiers: the words are in lowercase letters, and the words are separated by "_".

Backing Up the 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: 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.