SQL---->MYSQL Database 1------Additions and deletions change backup recovery

Source: Internet
Author: User

1. In terminal input: Mysql-uroot-p then enter the password to enter the client

2. Input: \s

3. Create a Database

3.1 Creating a character set is a utf-8 database

3.2 Create a database with a validation rule, the validation rules can be found in the API itself, here is used utf-8 Common check rules

4. View the database

4.1 Viewing database details

5. Deleting a database

6. Modify the database----- Modify the database, only modify the properties, cannot modify the library name

7. Back up the database-----save something first, and then back up

Back up in the terminal, not mysql>!!!

To the directory to view:

Success!

8. Restore the database (recover only the data of the library, unable to fully recover, so create a new database, import data)

The following executes the recovery database, in order to see the effect, first delete the database mydb2

8.1 Another way to recover-----under terminal

SQL---->MYSQL Database 1------Additions and deletions change backup recovery

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.