Mysql import/export Password Change command Summary (note 3)

Source: Internet
Author: User

1. Export data from the database

Note that these statements are executed before the mysql command line is started.

C: \ Windows \ system32> Export command

Instead

Mysql> Export command

1. Export the entire database

Or enter the password directly.

 

2. Export the structure of all tables in the database

3. export data from one or more database tables

4. Export the structure of a database table

Import External SQL files to the database

Clear all data in the database table at one time

Pilot output

In fact, it is the same as exporting only the table structure

Then, create a database

Create database

Before entering

Mysql> source xx. SQL

Modify mysql password

C: \ Windows \ system32> mysqladmin-uroot-p Original password New password

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.