Mysql-based data management and mysql Data Management

Source: Internet
Author: User

Mysql-based data management and mysql Data Management
Preparation Note: mysqldump.exeis the data import tool of the mysqldata warehouse server ( mysql.exe)

 

1. Data Backup
  • Store data on the database server in a local SQL File

Mysqldump.exe-h host name [-p port number]-u username-p password [-d] dbname [tablename]> c:/file. SQL

Note: The terminal must run win7 (com + r input cmd) win10 (com + x SELECT command prompt) in administrator mode)

Take win10 as an Example

A. Operation Result

Exported SQL File

 

 

What is Data Structure? What is data,

Data Structure: Only attributes of fields are included in exported database files. No other information is provided to ensure data security (personal understanding)

Export the structure and data of the database file

Syntax: remove d and the exported database file has the structure and data.

Mysql.exe-h host name [-p port number]-u user name-p password dbname <c:/file. SQL

Result;

 

  • Data restoration

Syntax:

Mysql.exe-h host name [-p port number]-u user name-p password dbname <c:/file. SQL

 

 

 

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.